+ Reply to Thread
Results 1 to 4 of 4

IF formula using dates returns 48700 if a cell is blank.

  1. #1
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Question IF formula using dates returns 48700 if a cell is blank.

    I need some help. I have a column I use for how many days late tasks are (Column “J”), but if Column “E” cells are blank it returns 48700 as a Value. Is there a way to have show blank, in Column “J”, when no date is entered in Column “E”?

    Formula in Column “J” Row 1 is: =IF(F2>0,F2-E2,TODAY()-E2) Then copied down to row 50.

    Note: there is a VBA to double click to enter dates in Columns D, E, F, G, & H
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: IF formula using dates returns 48700 if a cell is blank.

    Easy to fix:

    =IF(E2="","",IF(F2>0,F2-E2,TODAY()-E2))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: IF formula using dates returns 48700 if a cell is blank.

    Thank you very much AliGW!!!!

    I tried using =IF(E2<>"",(F2>0,F2-E2,TODAY()-E2),"" .Thank you for showing the correct way. I forgot to enter another "IF".

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: IF formula using dates returns 48700 if a cell is blank.

    No worries!

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

+ 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. formula always returns #VALUE! when reference cell is blank
    By delboy007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2018, 03:54 AM
  2. Replies: 4
    Last Post: 08-06-2018, 07:54 AM
  3. [SOLVED] formula returns value even when reference cell is blank
    By opusarlo in forum Excel General
    Replies: 7
    Last Post: 04-24-2015, 06:55 AM
  4. [SOLVED] When my formula encounters a blank cell it returns a 0, I need it to return a blank
    By stretch99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2014, 07:52 PM
  5. [SOLVED] Formula for days lapsed between 2 dates returns -41275 instead of blank
    By j_dinh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2013, 06:14 AM
  6. Replies: 11
    Last Post: 02-01-2013, 04:48 PM
  7. Find first cell with formula that returns blank
    By daveIrwin in forum Excel General
    Replies: 1
    Last Post: 02-04-2005, 12:56 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