+ Reply to Thread
Results 1 to 5 of 5

Index Match not working for specific cells in an array

  1. #1
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    13
    Posts
    4

    Index Match not working for specific cells in an array

    Hello,

    I am trying to use index match for calculations around a percentage of a given number. This is primarily because I am trying to get more of a feel around using Index Match in general, not necessarily to be as efficient as possible.

    In this attachment, I am trying to index match a certain result given a few IF statements.


    The logic behind this is: If the number of total reps hit is between this range, then you increase the weight by a certain percentage from week to week. However, once I have the percent increased found, the next weeks index match is returning an error only for certain numbers which from what I can tell, are in the array. Also, if I add a column next to the calculated cell and use the NUMBERVALUE formula to on the cell and use the new NUMBERVALUE driven cell, the index match function works.

    I am attaching the spreadsheet with sample data if anyone could help explain why this N/A pops up. That would be awesome.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Index Match not working for specific cells in an array

    It looks like you are using exact match lookups (3rd argument for the MATCH() function is 0), and when Excel says exact, it means exact (to the last bit). I think what you are experiencing here is "floating point error" where the numbers look the same but they are different out to the 11th or 13th or 15th place. You can see this if you put something like =(S7-'percentage lookup'!S19) into Z7 and format as scientific. If you get anything that looks like 1.11E-16, you will know that the two values are ever so slightly different and Excel is declaring them "not exactly equal".

    Solutions vary, but usually involve a ROUND() function. I took your formula in column S and nested it inside of a ROUND(current formula,3) formula, and that seemed to fix the problem.

    If you are interested, I have a list of resources for understanding floating point error here: https://www.excelforum.com/groups/ma...nd-errors.html
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    06-18-2019
    Location
    Florida
    MS-Off Ver
    13
    Posts
    4

    Re: Index Match not working for specific cells in an array

    Great! That makes sense. I will give that a try. Thank you!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Index Match not working for specific cells in an array

    S7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Probably only a tiny difference but it makes the exact match fail
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Index Match not working for specific cells in an array

    as a way
    =INDEX('Percentage Lookup'!$G$20:$U$43,MATCH(J9,'Percentage Lookup'!$E$20:$E$43,),MATCH(K9,'Percentage Lookup'!$G$19:$U$19))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IF/INDEX/MATCH?? - for looking up specific cells and quantities
    By RickCov in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2019, 06:31 AM
  2. [SOLVED] Index Match Issue Not Working in all the cells
    By amjad831001 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-18-2019, 08:47 AM
  3. Using Index Match formula - Working but I want to link the lookup array to a cell.
    By rohanellis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2018, 04:11 AM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  6. Index & Match - not working on merged cells
    By sm.salford in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2013, 05:01 PM
  7. [SOLVED] Long array formula with INDEX and MATCH quits working when range is too large
    By UncleKevy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-05-2013, 09:42 PM

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