+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP bringing up #N/A in some cells despite reference value matching in source table?

  1. #1
    Registered User
    Join Date
    07-19-2015
    Location
    London, England
    MS-Off Ver
    Microsoft Excel for Mac 2011 version 14.0.0
    Posts
    2

    VLOOKUP bringing up #N/A in some cells despite reference value matching in source table?

    Hi,

    Excel novice here so please bear with me, but I can't seem to get to the bottom of this.

    I've pulled the data from one column in 5 sheets to another, consolidated, and then hand coded these so that I could pull this coding back into the main sheets via a VLOOKUP. However - in some cases it refuses to pull this data over and instead gives me the value #N/A. Having hand coded over 3000 lines, I'd rather not have to go through another 5 tabs to find the cells that the formula failed in! It shouldn't be a problem with the formatting (blank spaces, etc.) as like I say the table array was copied and pasted from where I'm trying to bring the information back into. (Yes, I know that sentence makes no sense).

    My formula reads: =VLOOKUP(D4,'Author Coding'!A2:B3171,2,FALSE)

    One of the cells that hasn't worked reads: =VLOOKUP(D35,'Author Coding'!A33:B3202,2,FALSE) and contains a 'value not available error' but when I look at the table array I can see no difference between this and the other rows.

    I'm losing my mind slightly so if anyone has any ideas what's going on, I'd be very grateful!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    See if this helps:

    Common data problems with VLOOKUP
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-19-2015
    Location
    London, England
    MS-Off Ver
    Microsoft Excel for Mac 2011 version 14.0.0
    Posts
    2

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    Thanks! It looks like the problem should be this:

    [range_lookup]: Do you want an exact match? Is an approximate match okay?
    If you use TRUE as the last argument, or omit the last argument, an approximate match can be returned. This example has FALSE as the last argument, so if the product code is not found, the result will be #N/A.
    Except I can see the value it's looking for in the table array, which is why I'm so baffled.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    Try this..

    If the lookup value is in cell D35, find the matching value in the lookup table. Assume that is cell 'Author Coding'!A33.

    What result do you get from this formula:

    =D35='Author Coding'!A33

    What is in cell D35 and what is in cell 'Author Coding'!A33?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    You should also use absolute references for the row ranges of your table if you are copying down, i.e.:

    'Author Coding'!A$2:B$3171

    Notice how your table range has changed in the two example formulae that you quote - perhaps the matching value occurs in a cell which is no longer in the range, i.e. between A2 and A32.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    07-19-2015
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    2

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    Hi

    I need help ASAP! I am baffled by a Vlookup formula as well. Please see the formulas below and the attached spreadsheets. I am working from 2 workbooks. I cannot figure out why this formula isn't working.

    CompanyCodes 0012 to 0021 -- Formula for column F

    =IFERROR(VLOOKUP(B2,'C:\Users\Documents\[AB83 IRPA2015.xlsx]Sheet1'!$A$2:$I$11,9,FALSE),"No")

    Formula for column G -- =IFERROR(VLOOKUP(C2,'C:\Users\Documents\[AB83 IRPA2015.xlsx]Sheet1'!$A$2:$J$11,1,FALSE),"No")

    AB83 IRPA2015 -- Formula for column M

    =IFERROR(VLOOKUP(A2,'C:\Users\Documents\[CompanyCodes 0012 to 0021.xlsx]0012'!$A$2:$E$11,1,FASLE),"No")
    Attached Files Attached Files
    Lydia

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    A moderator is sure to come by and "yell" at you for posting your question in someone else's thread. That's against the forum rules.

    Please start your own thread.

  8. #8
    Registered User
    Join Date
    07-19-2015
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    2

    Re: VLOOKUP bringing up #N/A in some cells despite reference value matching in source tabl

    I'm so sorry. I didn't know. This is my first time using a forum.

+ 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] Changing Pivot Table Source Week using a reference cell
    By interested in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2013, 06:12 AM
  2. VLookup changes reference row when source data is filtered
    By ilantia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2013, 10:09 PM
  3. Dynamic reference table from a table source
    By Sailor61 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2013, 10:02 AM
  4. Replies: 4
    Last Post: 03-06-2012, 10:49 PM
  5. Replies: 1
    Last Post: 03-06-2012, 02:02 PM
  6. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  7. [SOLVED] Pivot Table data not matching source
    By PC in forum Excel General
    Replies: 3
    Last Post: 07-21-2006, 12:50 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