+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP() not working properly

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    21

    VLOOKUP() not working properly

    I am trying to use VLOOKUP() to make my spreadsheets work together........... I want to move info from column H on "Matser Inst List" to column D on "Report 1" based on the description in column C. I am using this

    =VLOOKUP(C5,'Master Inst List'!A:AZ,8,FALSE)

    but all I am getting in return is #N/A. Anyone know why?


    I have attached my spreadsheet..........TESTER.xlsm

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: VLOOKUP() not working properly

    use INDEX/MATCH

    =INDEX('Master Inst List'!H:H,MATCH(C5,'Master Inst List'!$N:$N,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: VLOOKUP() not working properly

    There's 2 problems.

    1. Vlookup looks for a match to the lookup value (C5) in the LEFTmost column of the lookup range (A:AZ)
    There are no values in column A on the master Inst List sheet.
    2. It appears you want to find the match to C5 in Column N on the master Inst List sheet, and return a value from column H.
    Vlookup can't do that, it can only go to the right..

    Try
    =INDEX('Master Inst List'!H:H,MATCH(C5,'Master Inst List'!N:N,0))

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: VLOOKUP() not working properly

    Hi,

    Perhaps you should be starting your table array in column N, since this appears to be where your search strings are located.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: VLOOKUP() not working properly

    for a vlookup to work, what you are searching for MUST be in the 1st column of the range. also, generally speaking, vlookup cannot look to the left of that column.

    So your formula needs to be something like this...

    =VLOOKUP(C5,'Master Inst List'!N:AZ,..........and the column number you want to return the data from....,FALSE)

    However, if you want to use the 8th column (H), then vlookup wont work for you. try this instead...

    =index('Master Inst List'!B:AZ,match(C5,'Master Inst List'!N:N,0),7)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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