+ Reply to Thread
Results 1 to 5 of 5

Rank Data without duplicates

  1. #1
    Registered User
    Join Date
    09-30-2010
    Location
    Rochester
    MS-Off Ver
    Excel 2003
    Posts
    9

    Rank Data without duplicates

    My problem is that I have a list of 20K agreement numbers. Each agreement has a supplier name and spend associated with the agreement. Every agreement has a unique ID however one supplier might have multiple agreement numbers.

    I would like to have a table created that has the top suppliers based on spend. Top agreement by spend I can do, but when it comes to supplier where I have to group the spend, that's where I get messed up.

    I however don't want a vlookup because there are filterings on top of that, which is not shown in the example spreadsheet attached.

    Grouping Data.xls

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Rank Data without duplicates

    Try this "array formula" in B12 copied down

    =INDEX(B$2:B$8,MATCH(C12,IF(COUNTIF(B$11:B11,B$2:B$8)=0,SUMIF(B$2:B$8,B$2:B$8,C$2:C$8))))

    and in C12

    =MAX(IF(COUNTIF(B$11:B11,B$2:B$8)=0,SUMIF(B$2:B$8,B$2:B$8,C$2:C$8)))

    both confirmed with CTRL+SHIFT+ENTER, see attached
    Attached Files Attached Files
    Audere est facere

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Rank Data without duplicates

    H smh242

    How about an answer without needing any formulas. See the attached
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    09-30-2010
    Location
    Rochester
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Rank Data without duplicates

    Daddylonglegs - thanks, it worked.

    MarvinP - my mistake, it's not vlookup that I can't use, it's Pivot Table that I prefer not to use. The reason is that there's an additional column called "Commodity" and the data changes everytime a different commodity is picked. So I would need to refresh the pivot table everytime I change a commodity and I prefer not to do that.

  5. #5
    Registered User
    Join Date
    09-30-2010
    Location
    Rochester
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Rank Data without duplicates

    Quote Originally Posted by daddylonglegs View Post
    Try this "array formula" in B12 copied down

    =INDEX(B$2:B$8,MATCH(C12,IF(COUNTIF(B$11:B11,B$2:B$8)=0,SUMIF(B$2:B$8,B$2:B$8,C$2:C$8))))

    and in C12

    =MAX(IF(COUNTIF(B$11:B11,B$2:B$8)=0,SUMIF(B$2:B$8,B$2:B$8,C$2:C$8)))

    both confirmed with CTRL+SHIFT+ENTER, see attached
    Daddylonglegs - I tried to do an "IF" statement into your formula above for commodity and it didn't quite worked. Can you help me out again?
    Revised Grouping Data_daddy.xls

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1