+ Reply to Thread
Results 1 to 6 of 6

Thread: Uniquely rank based on two criteria

  1. #1
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Uniquely rank based on two criteria

    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.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Uniquely rank based on two criteria then

    if the raw data is in Sheet1, columns A:B

    then in Sheet2, list unique IDs in Column A and in B2 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)))
    adjusting ranges to suit and confirm with CTRL+SHIFT+ENTER not just enter,

    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.

  3. #3
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Uniquely rank based on two criteria then

    Thank you for the help.

    I am getting a #NUM! error.

  4. #4
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Uniquely rank based on two criteria then

    I have been able to return the Max $ for the given ID but not the rest.

    Please see attached.
    Attached Files Attached Files

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Uniquely rank based on two criteria then

    You have not included some critical $ signs...

    try:

    =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)))
    confirmed with CSE and copied across and down
    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.

  6. #6
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Uniquely rank based on two criteria

    it works!!! thank you so much.

    you're a life saver.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0