+ Reply to Thread
Results 1 to 5 of 5

If two cells are blank then return blank, else vlookup cell with populated data

  1. #1
    Registered User
    Join Date
    11-10-2016
    Location
    Cleveland, OH
    MS-Off Ver
    2010
    Posts
    16

    If two cells are blank then return blank, else vlookup cell with populated data

    Need a hand .. I'm stumped and don't know why:

    Existing formula IF(ISBLANK(D4:D5)," ",IFERROR((IF(ISBLANK(D4),VLOOKUP(D5,'Master List'!B:O,14,0),VLOOKUP(D5,'Master List'!D:O,12,0))),"Not TSRd"))

    1. If D4 and D5 are empty, then in D6 return blank
    2. If d4 is not empty, vlookup d4 on master list and return TSR date in D6
    3. if d5 is not empty, vlookup d5 on master list and return TSR date in D6
    4. If D4 or D5, when entered are not found in the master list, return "Not TSRd"

    Thank you in advance for your input!
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,861

    Re: If two cells are blank then return blank, else vlookup cell with populated data

    you cannot test more than one cell with ISBLANK at once. So either:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or, instead of testing ISBLANK, just count non-blank cells, like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS. I'd rather use empty string "" than a space " " when there is no input, but of course this is to some extend personal taste (and also how - if at all - the output cell is further processed)
    Last edited by Kaper; 03-06-2017 at 10:10 AM. Reason: comment on empty string vs. space added
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    11-10-2016
    Location
    Cleveland, OH
    MS-Off Ver
    2010
    Posts
    16

    Re: If two cells are blank then return blank, else vlookup cell with populated data

    Kaper,

    Thank you so much, I wasn't aware of that. I did think to use the "and" function; but didn't ... it's a relatively easy formula, I just had a brain fart this morning.

    Thank you again!
    ~Jason

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: If two cells are blank then return blank, else vlookup cell with populated data

    Hi -

    I think your problem may be that ISBLANK is not a function that normally accepts arrays (D4:D5) as an argument. You can either make this an array formula by pressing Ctrl-Shift-Enter from the formula editing window to engage the array functionality. If you did it correctly, Excel will add curly braces {} to the formula. You will also have to unmerge the cells you are referencing (D4 and D5 are both merged across D, E, and F) and you will have to unmerge the cell the formula is in.

    Just as a general practice, try not to reference merged cells from a formula. The results are sometimes unpredictable and you can spend a long time trying to figure out why it's not working when the answer is simply because you are referencing merged cells.

    Hop this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  5. #5
    Registered User
    Join Date
    11-10-2016
    Location
    Cleveland, OH
    MS-Off Ver
    2010
    Posts
    16

    Re: If two cells are blank then return blank, else vlookup cell with populated data

    Thank you for sharing your expertise and teaching me! I appreciate it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  2. [SOLVED] Cells in a range are all not blank, return maximum value (date), If 1 blank return 0
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2016, 11:14 AM
  3. Return first non blank cell (cells have formulas that return blank)
    By BG1983 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2016, 04:06 PM
  4. Replies: 3
    Last Post: 02-09-2015, 09:00 AM
  5. Delete Cells with Specific Value and All Blank Cells Until Next Populated Cell is Checked
    By rdtrahan1906 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2014, 05:50 PM
  6. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  7. Return Blank Cell if Sum Cells Blank or Zero
    By Battledeck in forum Excel General
    Replies: 6
    Last Post: 06-11-2012, 05:55 PM

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