+ Reply to Thread
Results 1 to 4 of 4

Formula to calculate progress between two dates with start date greater than today

  1. #1
    Registered User
    Join Date
    08-09-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 365
    Posts
    10

    Formula to calculate progress between two dates with start date greater than today

    Hello, I'm using the following formula to calculate the progress between two dates. =(DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1) F9 is the Start Date and G9 is the End Date. However, this formula returns a #NUM error if the Start Date is greater than today. Does anyone know whether a modification to this formula using the IFERROR function to return a blank or 0% would work or if is there any other workaround? Thanks!!!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    42,017

    Re: Formula to calculate progress between two dates with start date greater than today

    Welcome to the forum.

    What did you try? Excel can't handle negative time differences, so you always have to work round them.

    Will this serve your purposes?

    =IFERROR((DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1),0)

    or:

    =IFERROR((DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1),"")

    The other option is to start with a test:

    =IF(F9>TODAY(),value_if_true,your_formula)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    08-09-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Formula to calculate progress between two dates with start date greater than today

    Thank you the following formula worked perfectly!

    =IFERROR((DATEDIF(F9,TODAY(),"d")+1)/(DATEDIF(F9,G9,"d")+1),0)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    42,017

    Re: Formula to calculate progress between two dates with start date greater than today

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

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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 calculating start/end dates using today and Blank if no dates
    By Italstal33 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-29-2017, 05:17 AM
  2. Calculate percentage between 2 dates with first date being =today()
    By Jade1987 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-11-2016, 06:25 AM
  3. Progress-Chart with different start/end Dates
    By tingle in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-05-2016, 07:47 AM
  4. Replies: 3
    Last Post: 08-14-2012, 05:14 AM
  5. Replies: 5
    Last Post: 08-02-2011, 07:11 AM
  6. Replies: 19
    Last Post: 09-16-2009, 07:22 PM
  7. Calculate Start Dates based on Need-By Date?
    By GB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2006, 02:15 PM

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