+ Reply to Thread
Results 1 to 5 of 5

Lookup Index/Match Formula is not working.

  1. #1
    Registered User
    Join Date
    12-08-2013
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    57

    Lookup Index/Match Formula is not working.

    I am trying to perform an Order lookup from the "Lookup Orders" sheet. I am referencing the "Order Text" field located in column "R" on the "Orders" sheet to MATCH the "Select Order No." on the "Lookup Orders" sheet.

    For some reason, I am getting a #NA error when I am trying to find a match. I have validated that the Index/Match formula on the "Lookup Order" sheet is working because if I replace the formula that I am using with the actual number "23120101" (which is the first order number) directly in column R on the Orders sheet, it finds the match when I type in "23120101" on the "Lookup Order" sheet, but if I stay with the formula in column R on the "Orders" sheet, it doesn't find the match.

    I have uploaded a working sample worksheet for your reference. Thanks!
    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,869

    Re: Lookup Index/Match Formula is not working.

    You are asking Excel to perform an exact match lookup (3rd argument of MATCH() is 0), and, when Excel looks for an exact match, the match must be exact. I notice that the value in Orders! column R is the result of a CONCATENATE() function, so the result will be text (verify with an ISTEXT() function). ISTEXT(C6) on sheet Lookup Orders says that this entry is a real number. The number 23120101 is not exactly the same as the text string "23120101." Because they are not exactly the same, MATCH() returns NA#.

    The solution is to decide if you are going to store these numbers as numbers or text, then be consistent throughout the sheet. If you want them to be numbers in "Order", nest the CONCATENATE() function inside of a VALUE() function (or equivalent operation) to force the value to be a number. If you want to enter text strings in "Lookup Orders," put a leading apostrophe on each entry in C6, or preformat the cell as text @ or other strategy for forcing text input to the MATCH() function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    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,677

    Re: Lookup Index/Match Formula is not working.

    Or you can do this:

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

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

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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


  4. #4
    Registered User
    Join Date
    12-08-2013
    Location
    United States
    MS-Off Ver
    Microsoft 365
    Posts
    57

    Re: Lookup Index/Match Formula is not working.

    Thanks, TMS, this fixed my look up problem. How did adding &"" fixed the issue? Again, thanks for fixing my issue, it is very appreciated.

  5. #5
    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,677

    Re: Lookup Index/Match Formula is not working.

    You're welcome. Thanks for the rep.


    How did adding &"" fixed the issue?
    It concatenates a null value to the original numeric search value, thus converting it to text. You are then matching text with text.

+ 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. [SOLVED] Index match not working if lookup column contains formulas?
    By Filos in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-15-2021, 04:49 PM
  2. extract lookup image with named range with index and match not working
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2019, 02:55 PM
  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. [SOLVED] index / match lookup formula not working
    By kevinu in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-23-2017, 05:10 PM
  5. [SOLVED] Lookup with mutiple criteria - Vlookup, Match, index not working
    By PM1985 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-17-2014, 07:10 AM
  6. 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
  7. Hello - I'm working with a 2-way lookup likely using Index & Match
    By CM_Marsh in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-13-2012, 11:15 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