+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP Reference Error

  1. #1
    Registered User
    Join Date
    05-18-2007
    Posts
    8

    VLOOKUP Reference Error

    Sorry, can't seem to figure out why I keep getting "#REF!" when I'm using the VLOOKUP function. I imagine I'm missing something very basic or using the wrong function.

    I have two workbooks open. I want to add three columns to Workbook1 that return the values in Columns F, G, and H in Workbook2 for rows where the A value in Workbook1 matches the A value for a row in Workbook2.

    Here's what I have:

    =VLOOKUP(A2,[Workbook2.xlsx]Sheet1!$A:$A,6) // (to get Column F)
    =VLOOKUP(A2,[Workbook2.xlsx]Sheet1!$A:$A,7) // (to get Column G)
    =VLOOKUP(A2,[Workbook2.xlsx]Sheet1!$A:$A,8) // (to get Column H)

    Is the problem that the table array I'm looking in has to have more than one column? Even if I'm only comparing the A columns in two workbooks?

    Thanks in advance for any help!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Your lookup table needs to include the whole table not just column A:

    try:

    =VLOOKUP(A2,[Workbook2.xlsx]Sheet1!$A:$H,6,0)
    =VLOOKUP(A2,[Workbook2.xlsx]Sheet1!$A:$H,7,0)
    =VLOOKUP(A2,[Workbook2.xlsx]Sheet1!$A:$H,8,0)


    I also added 0 for the last argument to find exact match, if you omit it you should have Column A in ascending order
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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