+ Reply to Thread
Results 1 to 4 of 4

How to stop a date formula from working if original cell is left blank

  1. #1
    Registered User
    Join Date
    10-06-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2016
    Posts
    13

    How to stop a date formula from working if original cell is left blank

    I have used this formula =DATE(YEAR(E5), MONTH(E5) + 24, DAY(E5)) to calculate when training is due. However for employees that don't yet have training (the original date cell E6 is left blank) it creates a date "31-Dec-01" in AS6. I need it to instead create no date in AS6 if E6 has no date.
    Can anyone help me do this?

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: How to stop a date formula from working if original cell is left blank

    Try either of these formulas

    =if(ISBLANK(E5),"",DATE(YEAR(E5), MONTH(E5) + 24, DAY(E5)))

    or

    =if(E5="","",DATE(YEAR(E5), MONTH(E5) + 24, DAY(E5))

  3. #3
    Registered User
    Join Date
    10-06-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: How to stop a date formula from working if original cell is left blank

    Thank you soo much. that worked perfectly.

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: How to stop a date formula from working if original cell is left blank

    You're welcome

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, please consider taking the time to Add Reputation for all those that assisted in your inquiry.

    Cheers

+ 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. [SOLVED] Weighed Grade formula stop working with blank cell
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-14-2017, 06:51 PM
  2. =Left while deleting the characters that are being copied from the original cell.
    By MittenWinter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2013, 09:51 PM
  3. Adding years to a date, but leaving blank if no date in the original cell.
    By buddyhackit9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2011, 01:17 AM
  4. Formula stop when seeing a blank cell
    By whatsmyname in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 08-05-2010, 06:21 PM
  5. Copying formula to new worksheet: how to stop formula linking to original source?
    By test-card girl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2007, 07:32 AM
  6. How Do You Make A Formula Stop At A Blank Cell?
    By BZK in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2007, 05:46 PM
  7. Make excel stop if the date cell is blank
    By Mike J in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2006, 03:40 AM

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