+ Reply to Thread
Results 1 to 8 of 8

Thread: Vlookup error

  1. #1
    Registered User
    Join Date
    03-16-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    5

    Vlookup error

    Hi,

    So I have File#1 and FIle#2

    I had a formula that I unfortunately lost to reference Column A(Postal Code) in File#1 with Column A(Postal Code) in File#2 and to report back the number in Column B(ID number) in File#2.

    I searched a bit and found =VLOOKUP(A4, '[REF.xls]ALIGNMENT REF'!$A$2:$B$25258)
    which looks like what I had before but it gives me an error that says "Too few arguments"

    A4 = column a in File #1
    [REF.xls] = File #2
    ALIGNMENT REF = Sheet
    $A$2:$B$25258 = Column A and Column B in File #2

    Does anyone know what I can do to make this work?
    Thank you!
    Last edited by NBVC; 03-16-2011 at 01:54 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Vlookup error

    You probably want:

    =VLOOKUP(A4, '[REF.xls]ALIGNMENT REF'!$A$2:$B$25258,2,FALSE)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    03-16-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Vlookup error

    Yes! That worked!
    Thank you so much!

  4. #4
    Registered User
    Join Date
    03-16-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Vlookup error

    Ok, so I have that formula which works in those two files,

    but I want to use it somewhere else too

    I have 2 columns of postal codes in the same sheet and one has an ID number next to it. Why is my formula not working? I thought I understood before but it seems not so..

    I took the formula above and just changed the locations. What else do I need to change?
    =VLOOKUP(D3,A3:B25260,2,FALSE)

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Vlookup error

    You need to put the $ signs around the A3:B25260 so that when you copy down it freezes the lookup range.

    This formula looks for the value that is in D3, and tries to find it in A3:A25260. If it finds it, it returns the corresponding value from column B, else it returns the #N/A error.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Registered User
    Join Date
    03-16-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Vlookup error

    I added the $ around the A and the B like you showed me in the first formula but it still gives me #N/A ?

    =VLOOKUP(B2,$E$2:$F$25260,2,FALSE)

  7. #7
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,637

    Re: Vlookup error

    That means that B2 is not matching exactly to column E entries.

    Check for additional spaces in any of the cells...

    If you are trying to look for a number, check the formats, if the formats seem okay, then select column E and go to data|Text to columns and just click Finish.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  8. #8
    Registered User
    Join Date
    03-16-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Vlookup error

    Beautiful!
    I did a Ctrl+F and deleted all the spaces and now it works.

    Thanks once again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0