+ Reply to Thread
Results 1 to 4 of 4

Vlookup in different sheets or workbooks

  1. #1
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Vlookup in different sheets or workbooks

    hi,
    for the moment i am using

    =VLOOKUP(a2, sheet1!A1:b10, 2, TRUE)

    if you see that i am using it only for one sheet, that is sheet1. is there any one that can help me to use this formula for "sheet2" as well. so to lookup at both sheets.

    many thanks in advance

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Vlookup in different sheets or workbooks

    You can use =IF(Iserror(Vlookup(A2,Sheet1!A1:B10,2,0)),Vlookup(A2,Sheet2!A1:B10,2,0),Vlookup(A2,Sheet1!A1:B10,2,0). The True has to be changed to False (or 0, which I prefer using) because otherwise, it will return the closest match without going over, meaning it is unlikely to find an error.
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

  3. #3
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Vlookup in different sheets or workbooks

    thanks darkyam

    your formula works perfect for 2 sheets, i was trying to make it available for 3rd, 4rth and so on sheets but couldn't make it. any other option?
    many thanks

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup in different sheets or workbooks

    Hi

    If you post a sample workbook, i think i can saw you the way to do this.

    Regards.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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