+ Reply to Thread
Results 1 to 5 of 5

Returning a blank cell if no values entered into Columns D or E

  1. #1
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Returning a blank cell if no values entered into Columns D or E

    Good morning. I am using the following formula to return a specific value in Column F of my workbook. It works perfectly as is with the exception of needing Column F to remain BLANK if the corresponding cells in Columns D & E are also blank (i.e. D21=BLANK, E21=BLANK then F21=BLANK).

    Here's the formula I'm working with:

    Please Login or Register  to view this content.
    I've attached a sample workbook to this thread which contains the table and the above formula. Your suggestions are appreciated. Thanks.

    Matthew
    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,617

    Re: Returning a blank cell if no values entered into Columns D or E

    add one more check at the beginning:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Re: Returning a blank cell if no values entered into Columns D or E

    Kapar,

    Thanks for offering up a solution. It works great....just as hoped. I'm relatively new to Excel so I was wondering if you wouldn't mind explaining a little bit about how the formula works when IF(AND(D2="",E2=""),"", is added to the formula? Thanks again.

    Matthew

  4. #4
    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,617

    Re: Returning a blank cell if no values entered into Columns D or E

    Hi Matthew,
    It does, what it really means in plain english:
    IF both tests: D2="" and E2="" (so comparying empty text with cell D2/E2 resp.) are positive then return empty text, otherwise ... the old formula.

  5. #5
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Re: Returning a blank cell if no values entered into Columns D or E

    Kaper,

    Thanks for the explanation. I played with the workbook this weekend a bit and the formula is holding up nicely. Thanks again for offering spot on help.

    Matthew

    p.s. I finally go your name correct in this post!

+ 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: 4
    Last Post: 05-29-2013, 04:18 AM
  2. columns in excel to reflect array of values entered in previous two columns
    By netvasi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2011, 01:12 AM
  3. Replies: 1
    Last Post: 08-08-2011, 02:57 PM
  4. Replies: 4
    Last Post: 05-24-2011, 10:07 AM
  5. [SOLVED] Formulas returning a blank if no data entered in one cell
    By Mifty Jackson in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-31-2005, 12:06 PM

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