I am trying to rank based on a dollar value within a specific category (in this case a product #) and then show those dollar values in order in a separate location.
Please see below. I would like to be able to take hundreds of entries (first table) and as more are added, have the second table automatically update showing unique offers by $ ranked in order.
I have been trying to first rank all the offers by two criteria, but have been unable to show unique ranks. The goal would then to use that rank to populate the second sheet somehow.
Is there a formula that can accomplish this? I am open to suggestions.
Thank you in advance.
Product ID Offer $
123456789 $50.00
123456789 $20.00
123456789 $50.00
123456789 $20.00
987654321 $10.00
123456789 $60.00
123456789 $25.00
987654321 $12.00
987654321 $10.00
Rank 1 2 3 4
123456789 $60 $50 $50 $25
987654321 $12 $ 10 $ 10
Last edited by woogster; 08-05-2010 at 03:06 PM.
if the raw data is in Sheet1, columns A:B
then in Sheet2, list unique IDs in Column A and in B2 enter:
adjusting ranges to suit and confirm with CTRL+SHIFT+ENTER not just enter,=IF(COUNTIF(Sheet1!$A$2:$A$10,$A2)<COLUMNS(Sheet1!$A$1:A$1),"",LARGE(IF(Sheet1!$A$2:$A$10=$A2,Sheet1!$B$2:$B$10),COLUMNS(Sheet1!$A$1:A$1)))
Then copy down as far as you need and across as far as you desire to ensure you get all possible results.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Thank you for the help.
I am getting a #NUM! error.
I have been able to return the Max $ for the given ID but not the rest.
Please see attached.
You have not included some critical $ signs...
try:
confirmed with CSE and copied across and down=IF(COUNTIF($A$2:$A$10,$H2)<COLUMNS($A$1:A$1)," ",LARGE(IF($A$2:$A$10=$H2,$B$2:$B$10),COLUMNS($A$1:A$1)))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
it works!!! thank you so much.
you're a life saver.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks