+ Reply to Thread
Results 1 to 9 of 9

multiple vlook ups help!!!!

  1. #1
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    multiple vlook ups help!!!!

    Hi I need a forumla that does the following please.

    If cell P2 = N/A then vlook upworksheet 2, d18:E32, return 2nd col, if cell P2 does not have N/A, then vlook up worksheet 2, d2, e18 return the 2nd col.

    Any ideas how to do this please?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: multiple vlook ups help!!!!

    Try this...

    =IF(P2="N/A",VLOOKUP(P2,Sheet2!D18:E32,2,0),(VLOOKUP(P2,Sheet2!D2:E17,2,0)))

  3. #3
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: multiple vlook ups help!!!!

    Thanks. Sadly that doesn't work

  4. #4
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: multiple vlook ups help!!!!

    Not sure whats the problem....could you please upload sample workbook?

  5. #5
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: multiple vlook ups help!!!!

    Apologies it does half work. I missed out one part that is why it isn't working 100%.

    It should be that if If cell P2 = N/A then vlook up cell e2,worksheet 2, d18:E32, return 2nd col, if cell P2 does not have N/A, then vlook up cell p2 in worksheet 2, d2, e18 return the 2nd col.

  6. #6
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: multiple vlook ups help!!!!

    oh!...I think below will do

    =IF(P2="N/A",VLOOKUP(E2,Sheet2!$D$18:$E$32,2,0),(VLOOKUP(P2,Sheet2!$D$2:$E$17,2,0)))

    If NA then lookup in range D18 to E32
    If not NA then lookup in range D2 to E17

  7. #7
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: multiple vlook ups help!!!!

    Thanks. It doesn't like the N/A part, if I change that to something else like b, then it seems to work

  8. #8
    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 vlook ups help!!!!

    Quote Originally Posted by [email protected] View Post
    Not sure whats the problem....could you please upload sample workbook?

    This will be the best for all!
    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.

  9. #9
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: multiple vlook ups help!!!!

    Yes...it will work.

    If you are satisfied with the answer, could you please mark the thread as solved.

+ 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