Entry tags:
aaaarg! Excel can bite me!
Anyone here familiar enough with Excel (2000, in this case) to tell me how to do this?
I've got a spreadsheet with the results of the ConDFW art show sales. One of the worksheets in this spreadsheet is totals of sales by bidder number - I've got a formula that goes to the worksheet with the full data, looks for rows that contain a particular bidder number, and adds them up. The formula looks like this:
=SUMIF(Sales!$C$2:$C$140,'Bidder Totals'!A2,Sales!$D$2:$D$140)
where A2 (A3 in the next row, A4 after that, etc.) is the bidder number. The results in the Bidder Totals table look like this:
The problem comes when I want to sort the results by total sales, because I want to see who spent the most money in the art show, in order from most to least. Unfortunately, stupid Excel sorts the Total Sales column (which contains the formula) by the text of the formula, and not the results of the formula, which is TOTALLY STUPID. Why would I want to sort by "Sales!$C2:$C$140..." and not, say, "$ 30.00"?
Any help is WELCOMED. I'm going to find something to eat and check my mail, which ahsn't been looked at in four days. Hopefully somethign interesting is in it.
I've got a spreadsheet with the results of the ConDFW art show sales. One of the worksheets in this spreadsheet is totals of sales by bidder number - I've got a formula that goes to the worksheet with the full data, looks for rows that contain a particular bidder number, and adds them up. The formula looks like this:
=SUMIF(Sales!$C$2:$C$140,'Bidder Totals'!A2,Sales!$D$2:$D$140)
where A2 (A3 in the next row, A4 after that, etc.) is the bidder number. The results in the Bidder Totals table look like this:
| Bidder # | Total Sales |
| 01 | 30.00 |
| 02 | 0.00 |
| 03 | 61.00 |
The problem comes when I want to sort the results by total sales, because I want to see who spent the most money in the art show, in order from most to least. Unfortunately, stupid Excel sorts the Total Sales column (which contains the formula) by the text of the formula, and not the results of the formula, which is TOTALLY STUPID. Why would I want to sort by "Sales!$C2:$C$140..." and not, say, "$ 30.00"?
Any help is WELCOMED. I'm going to find something to eat and check my mail, which ahsn't been looked at in four days. Hopefully somethign interesting is in it.

no subject
So far the interwebs were pretty quiet, I think. I do still have plenty of Passion if you'd like some. (Okay, I just couldn't help myself from typing that~! Hee.) But seriously, I do have some extra and impable bottles.
no subject
no subject
no subject
*wishes she had Excel Saga icons*
no subject
(Anonymous) 2007-02-27 03:26 am (UTC)(link)no subject
no subject
no subject
Mr. Excel (http://www.mrexcel.com/)
They also have a forum (http://www.mrexcel.com/board2/) where you can ask questions. I hope that helps.
no subject
The regular sort option is going by values rather than formulas in my quick test setup, so there's probably a flag set somewhere to look at the formula. The dirty solution is to paste the values of the Totals column in a new column and sort by that.
no subject
If I paste the values into a new column and sort by that ... the sort somehow messes up the formulas in the original column and my totals there go off. AARGH.
no subject
no subject
no subject
no subject
If
no subject
Although if you're interested in it from the problem-solving viewpoint, I could send you a copy. XD
no subject
no subject
no subject
If I paste the values into a new column and sort by that ... the sort somehow messes up the formulas in the original column and my totals there go off. AARGH.
no subject
no subject
no subject
The sort dialog box is pretty simple - 3 options to choose columns for sorting data, asc or desc in each case, and radio buttons for Header Row and No Header Row. The Options... button pulls up a box with a drop-down menu titled First key sort order, and the choices are days of the week and months. It also has a Case Sensitive checkbox and a choice of oreintation - sorting top to bottom or left to right.
no subject
no subject
Copy the summary sheet. On one copy (which will serve as an intermediary) insert a column into column A, and put in this formula on each line:
=RANK(C2,C:C)
Where, of course, C2 refers to that particular row's Total Sales (presuming they are in column C now). That formula gives you a ranking from highest (being 1) to lowest for the Total Sales.
Now, for the next otehr that gives your REAL summary, in the first column put the numbers 1, 2, etc to the number of Bidders (for the rankings). In the second column enter these formulas on the first row of beside #1 in the next two columns respectively:
=VLOOKUP(A2,Totals!A:C,2,FALSE)
=VLOOKUP(A2,Totals!A:C,3,FALSE)
This will look in column A on the sheet named Totals (the name I've given to that otehr intermediary sheet for this example) for the ranking number on the current row, and pull in the info from the specified column (2 and 3 respectively) from the other sheet, thus bringing in the Bidder # and Total Sales for each line. And when it's all done, they're ranked in order from highest to lowest automatically, and more imporantly it's dynamic and will change with new data entry (except the length as you'll have to add more rows as you get more bidders or you'll lose the lowest ones).
Easy peasy!
If you don't want to do it with an intermediary totals page, it can be done with SUMIFs and rankings directly on the data sheet to pull from. Or you could put in a macro to resort each time new data is entered, but that gets annoying as it fires off ever time you touch a cell. An intermediary is really the simplest, and you can even hide it if it's bothering you to have more pages.
no subject
no subject
1) Make a duplicate of the whole worksheet (drag it besides holding CTRL key)
1) Select the items (numbers in your case) the row or column you want to sort.
2) Select Copy (CTRL C)
3) Right click in the same column or row and select PASTE SPECIAL, and select "VALUE" in the paste options dialog box
4) Click OK
5) Do the sorting, and this time should work because you shouldn't have the formulas but only the values.
XD