+ Reply to Thread
Results 1 to 4 of 4

Match Function not working on Lookup Value that contains formula

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    Washington DC
    MS-Off Ver
    2010
    Posts
    2

    Match Function not working on Lookup Value that contains formula

    Hello All,

    My Match function is not working when my lookup value references another cell. Here is my formula:

    =MATCH(G26,$P$9:$AC$9,0)

    Where my G26 is =G11 which is a specific text string. When I just type in the text itself into G26, the formula works. However, I need G26 to populate based on potential changing values in G11. Any thoughts?

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Match Function not working on Lookup Value that contains formula

    It might be helpful for us to look at an example Excel file (redacted) that demonstrates the problem. You can attach an Excel file (not an image) to this thread by clicking Go Advanced and clicking Attachments on the toolbar.

    My guess: the text in G11 has extraneous characters -- perhaps extraneous spaces or HTML nonbreaking spaces (ASCII 160) -- which you avoid by entering what you think the text is directly into G26.

    For example, does =LEN(G11) show the same number of characters as you believe are displayed in G11?

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

    Re: Match Function not working on Lookup Value that contains formula

    What does "not working" mean with this function? I can assume that it means "returning an N/A value because the text string in G26 (and G11) is not found in P9:AC9, but it would help to be certain that this is the case.

    If it is not finding the text string in G26 (and G11) in that range, that means that whatever text string is in G11 is not present in P9:AC9. Recognize that the "exact match" 0 in the 3rd argument really means "exact match" -- no difference allowed. First things to check for are leading trailing spaces or other non-printing characters. Second, be sure to check the text string carefully (both in G26/G11 and in P9:AC9) until you are certain that they are exact matches.

    From there, I'm not sure there is much to be said without a sample spreadsheet so we can see exactly what is in G11, G26, and P9:AC9.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    07-24-2017
    Location
    Washington DC
    MS-Off Ver
    2010
    Posts
    2

    Re: Match Function not working on Lookup Value that contains formula

    Thank you both for the quick response! The error was indeed a N/A value. You were correct, I had an extra space in the reference cells. Thanks so much for your help!

+ 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] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  2. [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
  3. 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
  4. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  5. 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
  6. why in match function, lookup value not working?
    By mingali in forum Excel General
    Replies: 1
    Last Post: 09-01-2009, 06:44 AM
  7. Lookup Function not working
    By hcamelion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2006, 02:25 AM

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