In this section, i would like to discuss my solution to excel problems which took me considerable time to work around. In essence there is not much difference between the knowledge base section and this except that in this section the workaround was for the entire solution of a problem instead of a small part of the whole problem.
Question 1 - Determining the five lowest scores for each player in a golf tournament
Hi, i have an excel sheet wherein i have data on the scores of various players who participated in golf leagues held in the past. With the completion of every tournament, my task is to compute the best (actually fice lowest handicaps) five scores for each player. For five years now i have been performing this feat manually. While it was OK at that time because of limited number of players tournaments, performing the exercise now has become a daunting and error prone task because of the sheer number of rows i have to plod through (for each player) to determine his five lowest scores. For e.g., please view cells C662, C762, C862, C962 etc. for Pete Noyes who is only one of the many participants (Download workbook). As you would notice, in each of these cells i have manually entered the summation formula after diligently figuring out the five lowest scores in the range E262:E662, E262:E762, E262:E862 etc.
Is there a way i can automate this in Excel whereby the formula automatically determines the 5 lowest scores for each player everytime a fresh score is added?
From: E Carol Vojtila
Workaround
Hi, if i have correctly understood your problem, you want to determine the five lowest scores for all the players in the tournament. As noticed from your formulas in cells C662, C762, C862, C962 etc., the major impediment is with the former part i.e. the bracketed summation and not the divsion. As a sample workaround, i have determined the five lowest scores for Pete Noyes and Joan Noyes only. These can then be replicated for the other players as well. The solution for Pete Noyes is given in column BB (Check rows 662, 762, 862, 962 etc.). You may link the summation part of the formula in cell C662 etc. with the result in cell BB662 etc. Also please note that the formulas in column BB are array formulas which are confirmed by a Ctrl Shift Enter instead of the conventional enter. The workings for Joan Noyes are given in range AW159:BA1505 (hidden). For Joan Noyes the workings and solution are similar in range BC159:BG1505 (hidden) and column BH respectively.
Please find my workaround to this problem.
If you would like to view the solution to "Sum highest n numbers based on a certain condition" (which is actually the gist of this problem), please refer Q 18 in the Knowledge Base.
Question 2 - Arranging data of five columns in one column so that filtering is easy
Hi, i have five columns for keywords. I have made each column a list, so that I can select an entry from the list and have only rows with that keyword displayed.
I was wondering if I could combine the entries from the four columns to appear in one consolidated list, so that when I look for an item, whether it be in "keywords, "Additional Keywords," "Additional Keywords (2)," etc., the item will be in one list that contains all the entries from the five keywords columns; and when I select an entry from the consolidated list, can I have all the rows that have the entries in each column selectively displayed?
Basically, I have to put in multiple keywords from an article in different columns, but when I search the database, I want to just look for a keyword from one list and have all the rows with that keyword pop up.
From: Steve Ahn
Workaround
I must first of all admit that i took quite some time to solve this problem but could finally solve it. The solution is completely flexible in as much as you may add rows in the sheet "Original" and they would automatically get added the the "My solution" sheet. I have tried to design the model in a manner that you would never need to change or tweak any formula in the "My solution" sheet. You just need to keep adding data in the "Original" sheet and on the "My solution" sheet you would need to select the relevant parameter from the drop down box in row 1. However, please keep the following in mind:
1. Do not add any more columns in sheet "Original"
2. My basic assumption is that whenever a new record is added, the following two would happen with respect to the "Order number" column (column X)
- A number in this column would exist (for every record added and existing)
- This number would always be unique
Please note that for this model to run perfectly, it is important for these two conditions to be satisfied.
3. Do not edit the formula in cell AA1 of sheet "Original". You ay cut and pste it in any other column you wish.
4. In the "My solution" sheet, do not bother about the sign which appears above column G. This represents collapsed columns which contain formulas. As mentioned earlier, you would probably never need to edit or even view these formulas.
Please find my workaround to this problem.
Question 3 - Automating data summarisation to avoid manual copying and pasting
It is my goal to develop well structured, organized, user-friendly, and easy to maintain spreadsheets to give out well presented and meaningful information. I once read somewhere that a hallmark of a well developed spreadsheet is that data should be in a list form separate from the output. The data then should be manipulated to achieve the desired output. This is exactly what I want to achieve, however, with a bit of automation.
With that intro, explanation on the spreadsheet is as follows:
(1) 1) The attached spreadsheet is a detail analysis of progress billing and Work in Process (WIP) along with reconciliation between the GL and the sub-ledger.
(2) 2) Tab ‘Summary’ is the desired output. There are primarily three sections in this tab. The top section contains the GL balances for the related GL accounts. The middle section is Sub-ledger information related to the GL accounts. The last section is the variance between the GL & SL.
(3) 3) The sub-ledger section has again three sections: customers with Canadian $ billing, customers with US$ billing and customers with NO billing but only cost. (The only twist here is that sometimes a customer/project might have multiple work orders, many being just cost accumulation WOs and no billing would initiated against such WOs. I will have to include manually. For the learning process this twist can be ignored). Each of these raw data billing sheets can have upto 1,000 lines of data.
(4) 4) The three tabs, namely, ‘C$ Progress Billing & WIP’, ‘US$ Progress Billing & WIP’, ‘WIP with NO Progress Billing’ are the intermediate steps for categorizing, combining, summarizing & totaling the two sets of raw data. This requires the bulk of my manual intervention. I would like to either automate these intermediate tabs or completely eliminate them. Whatever you suggest!
(5) 5) The common field for the raw data is “Customer” and “WO#”.
(6) 6) Taking tab ‘C$ Progress Billing & WIP’ as an example you will notice that I just combine the lines from the progress billings with the lines from WIP for a customer. Please note that I am unable to combine or put on the same line the progress billing amount and the WP values.
(7) 7) Once the intermediate tabs are ready, I then manually copy the customer names to the summary sheet in their respective category and link them to their values in the intermediate tabs.
(8) 8) Every month there is addition to and deletion from the raw data.
Wish List:
As the raw data is dynamic, the automation that I need is to be able to pickup data, such as Customer, WO#, progress billing value and the cost value from the progress billing and the WIP raw data and summarize all that in the intermediate sheet without much of manual intervention. The information from the intermediate sheet would then roll up in the summary sheet automatically. Any changes in the raw data would accordingly change the intermediate and the summary sheet.
From: Shahid Jameel
Workaround
I have been able to figure out a workaround to our problem at hand after a fair bit of struggle and a great learning experience. Please find attached the workbook with my solution. My solution is given in sheet "Summary (Automated)". The other sheet i have added is "Ashish Analysis" which is the machinery behind the summary sheet. You may hide this sheet if you wish to but please do not make any changes to it. I have tried my level best to ensure that you would never need to go to this sheet. All you have to do is keep adding your records in the two input sheets. I have actually been able to do away with the intermediate sheets as well.
Please also keep the following in mind:
1. Since there are a lot of formulas running in the background, it takes some time (a few seconds more than normal) for the workbook to recompute when you add a record. So the output in the "Summary (Automated)" sheet may not be visible immediately. I sugest you view the output when the lower left portion of the workbook reads "Ready".
2. All you have to do is keep adding records in the two "raw data" sheets. The range A11:L100 in the "Summary (Automated)" sheet is absolutely automated i.e. it recalibrates on its own for new records added. Everything right from record additions to formatting are automated so you would not have to copy paste at all. You may make changes to the range A1:L10 in the "Summary (Automated)" sheet.
To ensure proper functioning of this model, please ensure the following:
1. Do not insert or delete any rows or columns in the two raw data sheets. If you wish to delete a record, please delete the contents and not the row (Do not worry about the blank rows)
2. I have replicated your "Summary" sheet in my "Summary (Automated)" sheet except for the row which carries the "Difference b/w GL & SL". It was difficult to add this row due to Excel's limitations of the number of nested IF's which can be used.
3. Do not make any changes to the "Ashish Analysis" sheet
Please review this workbook and give me your feedback.
Question 4 - Summarising based on multiple conditions
I have been unable to come up with a formula that will lookup both multiple conditions and multiple options. I need the formula in the hours column to lookup the information in the hours worksheet against both the name and activity. If both are true, then input the correct hours. The possibilities are multiple activities for one employee and also multiple employees for one activity.
From: Beth Kettenring
Workaround
Hi, please find attached the workbook which contains my solution in range I2:I157 of sheet "Work Copy". It is an aray formula solution (confirmed by Ctrl Shift Enter) as against the conventional Enter. You may replace the values in column D with the formula in column I.
Question 5 - Simplifying worksheet inputs and querying
As you can see there are is a worksheet ("Seller A") belonging to different sellers of the goods sold to different buyers. There are invoices, Payments, Part payments, Debits, Credits, Commission, Added commission. I am able to maintain this worksheet manually but it is very tiresome when I have to add part payments. I have to manually add rows for part payments. When a new buyer enters I have to manually copy paste the rows and coloumns, apply formulas etc. Actually very tiresome to maintain it, eventhough I must admit that I am absolutely going perfect in maintaining my accounts in this worksheet. Everynow and then I have to look for payments to be received from a particular buyer for all and a particular seller. I have to search for payments due and not payed. I have to search for accounts payable to a particular seller from a particular buyer or all buyers. No of bales sold in a month Commission to be received from a seller I am also going to add interest payment coloumn on a later stage.
Please give me your improvisations and suggestions. Is there a way where I can add forms for everything? Should I maintain all transactions on a single sheet? I want to be able to generate reports and thereby easily take printouts. Rightnow I have to manually select, hide coloumns to take printouts. I am otherwise thinking of paying to make a customised software of the same.
From: Rajesh Bhansali
Workaround
As i correctly understand, there are two major problems you are facing.
1. Inserting rows for buyers who make part payments and copying all formulas time and again (taken care of by worksheet redesign); and
2. Running queries such as determining the invoices raised on a particular buyer by a particular seller etc.
Let's try to address each of your concerns now.
1. Worksheet redesign - For this, please emphasise on range A5:Z5 downwards. Do not bother about any rows above (we will come to that later)
a) I suggest you maintain the spreadsheet (as done in Ashish solution) in a manner such that you do not segregate the details buyer wise. Do not insert rows in situations where the buyer makes a part payment against any invoice - instead just keep entering data as and when you receive it.
b) The formula in range R6:R500 would automatically search for payments made by a buyer and debits against a particular invoice in all the rows below and accordingly return the amount due. I have tried to depict the same through an example i.e. Please notice row 7 and row 10; row 10 depicts the part payment of an invoice which is booked in row 7. The "Balance" and "net received" columns depict the appropriate amounts.
c) As regards receipt of part payments, please remember to enter information about "Seller", "Buyer", "Invoice number", "payment date", "amount paid" and "debit" (In fact this is what you have also done in your "Seller A" worksheet w.r.t "payment date", "amount paid" and "debit". I am only requesting you to enter "Seller", "Buyer", "Invoice number"). Also for part payments, please do not enter any amount in column I (Again, even you have not entered this information in sheet "Seller A").
d) Also, i have coloured ranges O6:S500, V6:V500 and Y6:Z500 to depict that these carry formulas. Please remove these colours, if you so wish.
e) The formulas have been extended till row 500 only - please feel free to copy to more rows them as and when your data exceeds 500 rows.
f) Also, please lay particular emphasis on the formulas in range R5:R500 - these are array formulas which are confirmed by Ctrl Shift Enter as against the conventional enter. Also, as and when your data exceeds 500 rows, please remember to manually increase the range of B, C and L in the formula formula in column R
2. Running queries
I have provided the functionality to run queries at two levels. You may use filters (depicted by down arrows) in rows 4 to cull out column specific data. To know more about filters, please refer to Excel's help menu. You may run another form of query (in range A1:Z2) which, in my opinion, is more robust than the one just described. I have basically used Excel's database functions to do this. You will observe the "DGET" functions in the following cells - F2, I2, L2:M2, Q2:T2; V2:Z2. The cells marked in green (range A2:E2) are input cells for querying. I have depicted an example by entering some data in the input cells. When no data is entered in the input range, it implies that the search is in the entire column i.e. if A2 is left blank, then the database functions would yield results from all sellers.
Please download the workbook from here.
Question 6 - Searching across two worksheets
In the other 2 Workshhets attached PF-1D Roc and PF-1D-Roc-2,beginning on 4-15-05 the daily price change (1D-Roc) for all 25 sectors is recorded. The Symbol for each of the 25 Sectors is found at the top of worksheets for each of the 25 sectors.
For Example: In the worksheet called Daily Selection, On 4-15-05, the symbol for the Current Day Selection is manually entered in Cell B4. I want to return,automatically, in Cell D4 the 1D Roc for the Symbol (out of a possible 25) entered in Cell B4
From: Lou detrader
Workaround
Please find herein my workaround to the problem
Question 7 - Return highest from a number of columns
To Do:
1. For the Current Day (Cell A10), choose, from a total of 11 symbols (Highlighted in Row 2 & Row 3) , the symbol with the highest number in it's "Y"Column.
2. Using Formula Enter the Symbol in Cell BQ10.
Also, please make sure that if there is a ties between any two "Y" columns, then return the symbol ofthat column which has the highest value in column "A"
From: Lou detrader
Workaround
Please find herein my workaround to the problem
Question 8 - Parse data in columns In my survey, some of my questions (such as columns B & D) allowed the respondent to select more than one item. The datafile reflects these responses as a "10101" format, where 1=selected, and 0=not selected. The cell formatting I used (format->cell->number tab) was custom, because that kept the zeros in front of the first 1. For example, looking at column B, if a person did not check the first 4 items and did check the last one, their cell would look like: 00001. Obviously, I need those 0s as they are actual responses.
The problem happens when I go to do the text-to-columns split, because I need each individual item in its own column. That way, column B will be split into 5 individual columns, each containing only a 1 or 0 for each person. But the text-to-columns function does NOT recognize the 0s in front of the first 1 - it just discards them, which screws up my data. Using the example above, the text-to-columns function would record the 1 in the first columns, and leave the next 4 blank, rather than recording a 0 in the first 4 columns and a 1 in the last (which would be the accurate and correct way).
So my question is, is there a way to format my columns in such a way that I can do the text-to-columns split accurately? Or is there some other way to split my combined response columns (such as B and D) up into individual columns?
From: Stephanie Davis
Workaround
Please find attached my response in range AZ2:BE650 and BG2:BL650 of sheet "snwellness" .
Question 9 - Translate figures in text I wish to convert numbers to text in Excel. For e.g., if i inout 267 in a cell, i want the result as Two Hundred and Thirty Four. I am looking for a non macro solution.
From: Vinit Merchant
Workaround
Please find attached my solution to the problem of converting numbers to text in cell X3 of sheet "number to text". The input cell is A3. Please note that i have imposed two restrictions/validations in cell A3
1. The maximum number which can be input is 999,999,999. I personally think that this is the largest number you would ever like to input. Please let me know if this is a fair assumption.
2. To avoid complication, i have restricted the use of decimal numbers for the time being i.e. in cell A3 one can only enter whole numbers ranging from 0 to 999,999,999
Hope this solves your problem.
Question 10 - Generate alphabetical code Is There Any Way To Extract The First Letter Of Every Word In A Sentence In A Cell Which Can Contain Up To 16 Words, To Produce A Kind Of Alphabetical Code In Another Cell And Concatenate A Few Other Letters To The Beginning Of The Code?
Excel Cells
| Alphabetical Code | Details of Item | Supplier |
| | | |
| In This Cell I Would Like To Have "QL-MMB". Which Is The First Two Letters Of The Supplier i.e.. "QL" Then A Sink "-" And Then After The First Letter Of Every Word In The Details i.e.. "MMB" | Magnet Malta Bus | QL010 |
| QL-MFG | Magnet Fish Glitter | QL010 |
| QL-MSS | Magnet Sea Star | QL010 |
From: Johann
Workaround
Hi, please find a link to my solution. Hope this resolves your query.
Question 11 - Return value where input falls within a range
Hi,
I have a big sheet of compilations and now I am at a point where I want the following
If value of a cell is between 1 - 800, then it should throw out 5 days, anything above that, a day increases for every 160. Eg. If it is 801, it should throw 6 days. If it is 961, it should throw 7 days.
So, I have two options..
1. Use a table showing the following
1 - 800 5
801 - 960 6
961 - 1120 7
and so on.
The problem I face here is that I am not sure how can I use VLOOKUP for finding the cell value within that list of different ranges, to throw out the respective days if the call value falls within that range.
2. Use the formulae if(cell value<800, 5, cell value/160).
The problem here is that, firstly, days cant be in fraction and the moment any number is in fraction, I want it to be converted to the immediately next number. Eg: If division shows 6.12 days, it should show 7 days instead of rounding it off to 6 days.
Also, if it is not possible to embed the conversion of fraction to next number within the above "if" formulae, we can also use a different column for converting the fraction to next number, but I would be keen to know if the conversion can be embedded within the "if" formulae.
From: Vinit
Workaround
Assuming that your data is set up as follows in range B3:D9 (including the headers)
| Lower limit | Upper limit |
| 1 | 800 | 5 |
| 801 | 960 | 6 |
| 961 | 1120 | 7 |
| 1121 | 1280 | 8 |
| 1281 | 1440 | 9 |
| 1441 | 1600 | 10 |
Also, i assume that you enter a figure in cell B11.
Enter the following formula in cell D11 to get the result:
IF(ISERROR(IF(VLOOKUP($B$11,B$4:B$9,1)/160<1,D4,VLOOKUP(ROUNDUP(VLOOKUP($B$11,B$4:B$9,1)/160,0),D4:D9,1))),"",IF(VLOOKUP($B$11,B$4:B$9,1)/160<1,D4,VLOOKUP(ROUNDUP(VLOOKUP($B$11,B$4:B$9,1)/160,0),D4:D9,1)))
Question 12 - Updating records across sheets
Hi, in the workbook (see link below) i to place open issues in the 2nd sheet "Closed Issues" whenever their resolution is received.
The steps involved are:-
1. To change the Status column in sheet1 from "Open" to "Close" of the selected row.
2. Select that entire row & cut it.
3. Paste that row in sheet2.
4. Change the S.No. of sheet2.
5. Delete that entire row from sheet1.
6. Change the S.No. of sheet1.
Note:- The resolution of issues received are in random order i.e. they may not be in received in any order(date wise or s.no. wise).
Appreciate your help.
From: Amit Gupta
Workaround
Please find attached the workbook with my workaround to the problem. Please pay heed to the following points:
1. When you enter the resolution date in sheet "Open issues", the status would automatically change from Open to Close. Do not change the issue status (column F) manually - it is linked to the entry of the resolution date in column H.
2. Also, when you enter the resolution date in sheet "Open issues", the data would automatically get populated in sheet "Closed issues".
3. When you change the status in the drop down box to "Mask closed issues", you will notice that the closed issues would become invisible. You will also notice that the serial numbers would get updated.
4. I have basically provided the drop down functionality because if you enter an incorrect date in column H, you can unmask the data and correct it.
5. Kindly do not delete column K (hidden column which has the workings).
6. The sheet "Closed issues" is completely automated. No manual entry is required here.
Question 13 - Sort in reverse order
Hi, i am essentially trying to sort a list of numbers in reverse order. For a better understanding, please read the example below:
Normal Sorting Ascending | Normal Sorting Descending | Desired Output Ascending |
14354 | 98989 | 92120 |
23992 | 92120 | 42051 |
39267 | 90287 | 23992 |
42051 | 83405 | 14354 |
46886 | 65747 | 83405 |
65747 | 46886 | 46886 |
83405 | 42051 | 65747 |
90287 | 39267 | 39267 |
92120 | 23992 | 90287 |
98989 | 14354 | 98989 |
From: Peter Bialas
Workaround
Hi, this is a fairly interesting question. Please find herein my
workaround to the problem. Hope this solves your problem.