+ Reply to Thread
Results 1 to 2 of 2

vlookup from two separate sheets in work book

  1. #1
    Registered User
    Join Date
    09-12-2010
    Location
    los gatos, ca
    MS-Off Ver
    Excel 2003
    Posts
    1

    vlookup from two separate sheets in work book

    I am trying to look at the cell to my left, and if it is PROD, then look at the ranges on the US sheet and INTL sheet and bring the answer forward from the 3rd column. It worked when I had just one range but when I added the second range I get NA and FALSE. Is it correct to use a plus sign between the two ranges? Thank you!

    =IF(D5="PROD",VLOOKUP($A5,US!A4:F5+INTL!A4:F5,3,0))

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

    Re: vlookup from two separate sheets in work book

    Are you concatenate the results?

    =IF(D5="PROD",VLOOKUP($A5,US!A4:F5,3,0)&VLOOKUP($A5,INTL!A4:F5,3,0))

    or add the results?

    =IF(D5="PROD",VLOOKUP($A5,US!A4:F5,3,0)+VLOOKUP($A5,INTL!A4:F5,3,0))

    or find result from whichever holds the A5 lookup value:

    =IF(D5="PROD",IF(ISNA(VLOOKUP($A5,US!A4:F5,3,0)),VLOOKUP($A5,INTL!A4:F5,3,0),VLOOKUP($A5,US!A4:F5,3,0))
    Last edited by NBVC; 09-12-2010 at 01:29 PM.
    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)

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.6.0 RC 1