+ Reply to Thread
Results 1 to 3 of 3

Index Match help with certain criteria.

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    4

    Index Match help with certain criteria.

    Hello, this forum is a wonderful resource, and I have been looking at it for a few weeks now ever since I started to use excel.

    I created my first experiment with excel, a sheet for my boss, with all sort of tables and information my boss requires. What I need help with is an index match formula.

    If you look at cell AG:7 in table called TableSTATS2, it is giving me a result that is somebody's name. It is supposed to give me one of the five store numbers instead. (504 or 696 or 1506 or 2351 or 2644).

    I'm having the same problem with cell AG:10, and I realize the reason this is happening is because it is matching the first occurrence of the match, and I only need it to match the number from the totals rows in the five tables named ( table504s and table694s ... table 2644s) respectively.

    I think if you look at what I'm trying to do there it should be self explanatory. I realize what is wrong, I just don't know how to tell the formula to only match the result if it falls in the totals row of one of the five tables that are stacked in the middle of my sheet.

    I'm not sure I expressed myself eloquently enough to be understood but having pinpointed the problem cells I hope this is self explanatory.

    I did this same report for March and it was fine, because I had all unique numbers, only now am I seeing the flaws in these newly created formulas. Forgive my formulas if they are not as neat and clean as should be, I am brand new and these are my very first few weeks creating this stuff and well, thanks for all your help so much!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match help with certain criteria.

    IN AG7:

    =INDEX(OFFSET($P$1,MATCH(MIN(Table504S[[#Totals],[Jobs Sold]],Table696S[[#Totals],[Jobs Sold]],Table1506S[[#Totals],[Jobs Sold]],Table2351S[[#Totals],[Jobs Sold]],Table2644S[[#Totals],[Jobs Sold]]),S:S,0)-1,,20), MATCH("TOTAL PROFITS", OFFSET($P$1,MATCH(MIN(Table504S[[#Totals],[Jobs Sold]],Table696S[[#Totals],[Jobs Sold]],Table1506S[[#Totals],[Jobs Sold]],Table2351S[[#Totals],[Jobs Sold]],Table2644S[[#Totals],[Jobs Sold]]),S:S,0)-1,,20), 0)+2)

    The colored range sets a range of 20 cells starting from the row where the MIN value is found. Then it searches those 20 cells for the fixed value TOTAL PROFITS and displays the value in the cell 2 cells below that.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Index Match help with certain criteria.

    Thank you! I will try this out in a few minutes and study how it's working!

+ 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