+ Reply to Thread
Results 1 to 14 of 14

Don't know what's wrong with Vlookup

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Don't know what's wrong with Vlookup

    Hi,

    I'm really not sure as to why my Vlookup formula is not working:

    =VLOOKUP(sheet1!A2:A127, sheet2!A2:B57,2, FALSE)

    What I am trying to achieve, is for Excel to look at values in Column A in sheet 1, and compare them to values in Column A in sheet 2. If they are equal, I would like it to return the value in Column B of sheet 2.

    Another potential hurdle is that there are more values in sheet 1 then sheet 2, so sorting columns alphabetically will not keep them corresponding (if that makes sense).

    As it currently stands, it's giving me a #N/A for return value.

    -Thank you

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Don't know what's wrong with Vlookup

    Is the value in A2 on Sheet1 the same data type, eg string/number, as that of the values in A2:B57 on Sheet2?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Don't know what's wrong with Vlookup

    Quote Originally Posted by Norie View Post
    Is the value in A2 on Sheet1 the same data type, eg string/number, as that of the values in A2:B57 on Sheet2?
    Yes, everything is text. Maybe it would help mentioning the values I'm trying to match up are emails.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Don't know what's wrong with Vlookup

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  5. #5
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Don't know what's wrong with Vlookup

    Quote Originally Posted by Norie View Post
    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    Hi Norie, unfortunately I don't think it's information I have permission to share, otherwise I would absolutely do it.

    But from your point of view, the formula seems accurate?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Don't know what's wrong with Vlookup

    Try, in Sheet1:

    =VLOOKUP(A2, sheet2!$A$2:$B$57,2, FALSE)

    and copy down.
    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.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Don't know what's wrong with Vlookup

    I'm so stupid, never saw that.

  8. #8
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Don't know what's wrong with Vlookup

    Quote Originally Posted by NBVC View Post
    Try, in Sheet1:

    =VLOOKUP(A2, sheet2!$A$2:$B$57,2, FALSE)

    and copy down.

    Hi NBVC,

    Where does the name of the first sheet go?

    -Thank you

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Don't know what's wrong with Vlookup

    If the formula is going in that sheet, you don't need to reference it...

  10. #10
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Don't know what's wrong with Vlookup

    Quote Originally Posted by NBVC View Post
    If the formula is going in that sheet, you don't need to reference it...
    Great, it works!
    Thank you very much. Would this be possible to do with multiple sheets? As in, match data from sheet 1 with data in sheet 2 and 3, for example.
    Last edited by timko92; 08-06-2013 at 03:54 PM.

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Don't know what's wrong with Vlookup

    Please elaborate.

    Do you mean this? http://www.xl-central.com/lookup-sin...le-sheets.html

  12. #12
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Don't know what's wrong with Vlookup

    Quote Originally Posted by NBVC View Post
    Please elaborate.

    Do you mean this? http://www.xl-central.com/lookup-sin...le-sheets.html
    I don't think so. I would like to match data in sheet 1 with data in sheet 2 and 3 for example, and return matched values in 1 return cell. Exactly as in my original post, but returning values of multiple sheets in one cell.

    -Thank you

  13. #13
    Registered User
    Join Date
    08-06-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Don't know what's wrong with Vlookup

    Quote Originally Posted by timko92 View Post
    I don't think so. I would like to match data in sheet 1 with data in sheet 2 and 3 for example, and return matched values in 1 return cell. Exactly as in my original post, but returning values of multiple sheets in one cell.

    -Thank you
    Hi, please disregard that last question. I figured it out. Thank you for your help.

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Don't know what's wrong with Vlookup

    You would need to then concatenate:

    e.g.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    , etc.

    if it's possible that some may not have a match, and you want to avoid errors... then

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Vlookup what am I doing wrong?
    By jazz56 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-15-2013, 03:13 PM
  2. VLookup...Wrong Formula?
    By Tom K in forum Excel General
    Replies: 13
    Last Post: 01-02-2008, 02:16 PM
  3. [SOLVED] VLOOKUP returning wrong row
    By jthomas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. vlookup, what am I doing wrong?
    By ufo_pilot in forum Excel General
    Replies: 3
    Last Post: 08-09-2005, 01:05 PM
  5. Vlookup & IF Function - What's wrong?
    By Olsonsbiz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2005, 05:08 PM

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