+ Reply to Thread
Results 1 to 2 of 2

Using TODAY Date Function in formula and leaving cell blank until needed.

  1. #1
    Registered User
    Join Date
    01-14-2016
    Location
    Indiana
    MS-Off Ver
    Office 2013
    Posts
    1

    Using TODAY Date Function in formula and leaving cell blank until needed.

    Good Afternoon,

    I am new here and trying to work more with formulas in my work excel sheets.

    I am currently working on a sheet in which I have dates in Column H and I need to calculate the number of days that have passed since in column K.
    I am currently using =DATEDIF(H538,TODAY(),"d") and it is working fine.

    My problem is that sheet is shared and I have others entering data that are not savy enough to copy the formula down and I have to go back and correct them.
    I would like to copy the formula all the way down the column, but do not want it to show the scientific date for today. I would prefer it remain blank until something Is typed in column H.

    I have tried to add an if to it and cannot seem to figure it out.
    =IF(H551="","",IF=DATED(H551,TODAY(),"d"))

    It hides the formula, but when something is typed in H, I get the results #NAME? instead of the answer to my calculation.

    Any help would be greatly appreciated.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Using TODAY Date Function in formula and leaving cell blank until needed.

    Look at it again and compare it to the original.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It's also not a good idea to refer to TODAY() everywhere as it is a volatile function. Put =TODAY() in a cell somewhere and then refer to that cell. For example, put =TODAY() in cell A1 and then refer to $A$1. Note that the dollar signs are important.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  2. Date Formula and leaving cell blank when no date is entered
    By Texguy02 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-31-2015, 02:57 PM
  3. Replies: 11
    Last Post: 09-15-2014, 02:36 AM
  4. [SOLVED] Leaving a Cell Blank and Sumproduct Function
    By jaclrsen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2012, 09:23 AM
  5. Replies: 1
    Last Post: 09-17-2012, 01:07 AM
  6. 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
  7. Replies: 2
    Last Post: 07-28-2011, 07:00 AM

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