+ Reply to Thread
Results 1 to 4 of 4

Total number of days from a certain day until today

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Eureka, CA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Total number of days from a certain day until today

    I am trying to report on a total number of days from a certain date until today.
    The formula I am using is:=DATEDIF(H1,TODAY(),"d"), where H1=the certain day's date
    The cell containing the result has 41918, and I am wondering why or if it is possible to change it so that it does not confuse the staff members who will be entering data into this form. There is no data in H1 yet. Please help. Thanks.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Total number of days from a certain day until today

    That answer is accurate, as the difference between 0 and today is 41918 days. Instead, put an IF statement to avoid the calculation if H1 is blank.

    =IF(H1="","",DATEDIF(H1,TODAY(),"d"))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Total number of days from a certain day until today

    Try this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Total number of days from a certain day until today

    Hi,

    Maybe

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the 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. [SOLVED] calculate number of days between a date and today
    By South texas man in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-20-2020, 04:58 PM
  2. [SOLVED] Adding Total Number of Days Elapsed and Displaying >31 Days
    By cwwazy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 08:18 AM
  3. Number of days (mon,tue&thur) between today and deadline
    By D4B5T3R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2010, 06:21 AM
  4. [SOLVED] Formula to count number of days in range which are less than today
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. Formula to count number of days in range which are less than today
    By zooming in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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