+ Reply to Thread
Results 1 to 10 of 10

Multiple Vlookup Formula

  1. #1
    Registered User
    Join Date
    07-29-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Multiple Vlookup Formula

    Hi Folks

    I am currently trying to populate a cell by adding 2 lookups together from 2 different spreadsheets
    It woks when when both spreadsheets has a value but give s #n/A if either one does not have a value.

    The formula i am using is

    =(VLOOKUP($C6,'Sheet2'!$F$6:$S$98,D$4,0)+(VLOOKUP($C6,'Ser & Mgmt C'!$C$7:$O$103,D$4,0)))

    So when both the cells from the different sheet have a value it works but when either one does not have a value it fails.

    Any help on this will be highly appreciated.

    Thanks
    Striving for perfection....

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Multiple Vlookup Formula

    Maybe

    =IFERROR(VLOOKUP($C6,Sheet2!$F$6:$S$98,D$4,0),0)+IFERROR(VLOOKUP($C6,'Ser & Mgmt C'!$C$7:$O$103,D$4,0),0)
    HTH
    Regards, Jeff

  3. #3
    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: Multiple Vlookup Formula

    Hi

    Did you try to use IFERROR, infront of your formula?
    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.

  4. #4
    Registered User
    Join Date
    07-29-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Multiple Vlookup Formula

    Yes tried is error but if i use is error i get a 0
    I want the formula to bring back the value it is present in either of the 2 sheets.

    Hope what i am saying makes sense

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Multiple Vlookup Formula

    Yes it makes sense, but in my test, what I posted worked for me.

    What do you get for each of the Vlookup's if you seperate them?

  6. #6
    Registered User
    Join Date
    07-29-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Multiple Vlookup Formula

    Hi Thanks for your reply

    For the 1st lookup i get a #n/a as there is no value and for the 2nd one i get a value

    and when i add both the look up together i get #n/a as the 1st lookup does not bring back any value
    Last edited by allana13; 06-07-2012 at 10:33 AM. Reason: more info

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Multiple Vlookup Formula

    If you are getting an #N/A for the first...

    This would return a zero
    =IFERROR(VLOOKUP($C6,Sheet2!$F$6:$S$98,D$4,0),0)

    And for the second, you said it returns a value
    IFERROR(VLOOKUP($C6,'Ser & Mgmt C'!$C$7:$O$103,D$4,0),0)

    When we put them together you should get

    0+2 = 2

    Can you run the evaluate formula?

    Place your curson on the cell with the formula >> Formulas tab >> Evaluate formula >> step through the formula to see what is happening.

  8. #8
    Registered User
    Join Date
    07-29-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Multiple Vlookup Formula

    Thanks Seems to have done the trick

    Many thanks for your help.

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Multiple Vlookup Formula

    You're very welcome...glad you got it all sorted out and thanks for the feedback

  10. #10
    Registered User
    Join Date
    07-29-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Multiple Vlookup Formula


+ 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