+ Reply to Thread
Results 1 to 5 of 5

Calculating # of days early or late

  1. #1
    Registered User
    Join Date
    06-05-2008
    Posts
    22

    Calculating # of days early or late

    Does anyone know of an easy formula that would look at two dates and figure out if the task is early or late and by how many days?

    Example:

    Estimated Date Due: 9/1/08
    Actual Date Completed: 9/5/08
    Days late = 4

    Estimated Date Due: 9/10/08
    Actual Date Completed: 9/5/08
    Days early = 5

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming estimated date is in A1 and actual in B1 you could use this formula

    =IF(B1="","",TEXT(B1-A1,"0 ""Day(s) Late"";0 "" Day(s) Early"";""On Time"""))

  3. #3
    Registered User
    Join Date
    06-05-2008
    Posts
    22
    That's awesome. Now, what if there is no "actual date" (i.e. the task hasn't begun yet)? What happens now is this will show as something like 39707 Day(s) Early.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    The formula I suggested should return a blank if B1 [actual date] is blank.

    You could alter the formula so that it only shows a result when A1 and B1 both contain dates, e.g.

    =IF(COUNT(A1,B1)=2,TEXT(B1-A1,"0 ""Day(s) Late"";0 "" Day(s) Early"";""On Time"""),"")

  5. #5
    Registered User
    Join Date
    06-05-2008
    Posts
    22
    Thank you very much. That did just what I wanted.

+ 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. Calculating days left in a month
    By orivera in forum Excel General
    Replies: 2
    Last Post: 07-25-2008, 02:44 PM
  2. [SOLVED] Calculating Business Days by excluding Saturdays/Sundays and other Public Holidays
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2008, 10:15 PM
  3. Calculating Month and days betweens dates
    By deepak_gl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2007, 08:34 AM
  4. calculating days between years
    By greg99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2007, 09:18 PM
  5. Replies: 16
    Last Post: 03-27-2007, 02:14 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