+ Reply to Thread
Results 1 to 5 of 5

Index and match based off of top 5 list for a specific field in a filtered column

  1. #1
    Forum Contributor
    Join Date
    06-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    104

    Index and match based off of top 5 list for a specific field in a filtered column

    So I have myself in a bit of a situation as you can tell by the title. I want to be able to find the corresponding employee to an absolute value of a difference for a specific client.

    To find the largest difference, I used (for client 1, for example):
    =LARGE(IF(A:A="Client 1", ABS (B:B), ""), 1)

    I attached a sample, simplified spreadsheet due to my lack of being able to describe what I want. I also typed in the yellow shaded cell my equation that I tried and it did not work. I highlighted in green the values I expect to get but I am having a tough time. My boss is already using a pivot table on the real spreadsheet I am working with but he wanted a sheet with visuals that can be easily read without any additional effort. Any help would be great!!

    (I realize I made a mistake for the "biggest difference" equation for "client 2" by using "client 1" instead. I just fixed it and got the value of 12 when I was expecting a name of one of the employees.)

    -Scott
    Attached Files Attached Files
    Last edited by ScottBeatty; 06-27-2013 at 04:21 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index and match based off of top 5 list for a specific field in a filtered column

    In G6

    =INDEX(C:C,MATCH(1,(A:A=E6)*(ABS(B:B)=F6),0))

    Array entered
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    06-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Index and match based off of top 5 list for a specific field in a filtered column

    Oh awesome, so for future knowledge, why did you used "1" for the first portion of the MATCH equation?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index and match based off of top 5 list for a specific field in a filtered column

    using the binary equivalent, TRUE eqautes to 1 and FALSE equates to 0.

    Only, if both conditions are TRUE [(A:A=E6) and (ABS(B:B)=F6)] (which is what you want!) will their multiplication result in 1. Using that as a premise, the MATCH function is formulated.

  5. #5
    Forum Contributor
    Join Date
    06-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Index and match based off of top 5 list for a specific field in a filtered column

    Oh I follow that. Thanks a lot!

+ 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