+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP result displaying #N/A

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    15

    VLOOKUP result displaying #N/A

    I have 2 worksheets:
    1 ) has 14,000 employee entries ( usernames (IDs), first and last names, dept, etc.) called Employee Data_2013 a.k.a. "the master list"
    2) The 2nd sheet called Results has all of the employee usernames (ID numbers) that I want to pull from the master list

    In the Employee Data_2013 worksheet has the usernames located in column B of this master list. The Results sheet has all of the usernames located in column A. I used the following formula and had the result "#N/A" returned to me:

    =VLOOKUP('Employee Data'!A:J,2,FALSE)

    Any advise as to what I am doing wrong?

  2. #2
    Forum Contributor
    Join Date
    01-24-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    100

    Re: VLOOKUP result displaying #N/A

    hi

    can u pls share the sample excel

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

    Re: VLOOKUP result displaying #N/A

    You've missed the first parameter - the lookup value. But, if your usernames are in column B (with the ID numbers in column A ??) you can't use VLOOKUP as it can only look for matching values in the first (left-most) column of the table. Try it like this:

    =INDEX('Employee Data'!A:A,MATCH(A2,'Employee Data'!B:B,FALSE))

    Hope this helps.

    Pete

  4. #4
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: VLOOKUP result displaying #N/A

    Two things to help you:

    1) the 'Employee Data' should be 'Employee Data_2013' to reference the correct sheet and you need to tell the formula which cell contains the lookup value (assumed in row A)
    2) if you employee ID doesn't exist you will get N/A as a result. To correct this wrap the VLOOKUP around an IFERROR:

    Please Login or Register  to view this content.
    The "" can be changed to "Not Found" or similar if you want ("" will just leave the cell blank)
    Last edited by Harribone; 03-11-2013 at 03:13 PM.
    Say thanks, click *

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: VLOOKUP result displaying #N/A

    What you are trying to do is not very clear, but in any case if you have 14k rows, an INDEX/MATCH combination will be much faster than VLOOKUP.
    Perhaps add a small sample sheet indicating what you need to achieve?

+ 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