+ Reply to Thread
Results 1 to 5 of 5

Vlookup with nested if functions

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    22

    Vlookup with nested if functions

    Hey all,

    I am new to excel and this forum, so sorry for the clumsiness.

    So, I am trying to use Vlookup to 'grab' a date from one sheet and place it in another. It is important that if the value cannot be found then the cell is left blank (no #N/A).

    I built the following and it works well:

    IF(ISERROR(VLOOKUP(B17,Sheet1!A32:M94,11,FALSE)),"",VLOOKUP(B17,Sheet1!A32:M94,11,FALSE))

    Next, I want the Vlookup to deal with three IF functions. So, if the first cell is blank it checks the previous, and if that cell is blank then it checks the previous and finally if that cell is blank does not return any value (including #N/A).

    I tried this:

    =IF(ISBLANK(VLOOKUP(B17,Sheet1!A32:M94,13,FALSE)),IF(ISBLANK(VLOOKUP(B17,Sheet1!A32:M94,12,FALSE)),IF(ISERROR(VLOOKUP(B17,Sheet1!A32:M94,11,FALSE)),"",VLOOKUP(B17,Sheet1!A32:M94,11,FALSE)),VLOOKUP(B17,Sheet1!A32:M94,12,FALSE)),VLOOKUP(B17,Sheet1!A32:M94,13,FALSE))

    This does everything all the way to if the last cell is blank it places #N/A instead of leaving the target cell blank.

    I have attached my sheets, if that helps.

    Any thoughts?

    If I need to clarify my question just let me know.

    Thanks!
    Attached Files Attached Files
    Last edited by NBVC; 07-13-2010 at 11:26 AM.

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

    Re: Vlookup with nested if functions

    Check that you have a match in Column A of Sheet1 first:

    Please Login or Register  to view this content.
    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.

  3. #3
    Registered User
    Join Date
    07-12-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Vlookup with nested if functions

    This looks like it should work, but I keep getting this error "Formula refers to empty cell". Not sure what I am doing wrong.

    Thank you very much for your help!




    Quote Originally Posted by NBVC View Post
    Check that you have a match in Column A of Sheet1 first:

    Please Login or Register  to view this content.

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

    Re: Vlookup with nested if functions

    I am not sure what you mean by that error... but I did note that I have incorrectly stated the range in the initial Match() function.


    Try:

    Please Login or Register  to view this content.
    and copy down.

  5. #5
    Registered User
    Join Date
    07-12-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Vlookup with nested if functions

    Perfect! Thank you!

+ 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