+ Reply to Thread
Results 1 to 7 of 7

Count Days in Phase by using Milestone Dates

  1. #1
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    363

    Count Days in Phase by using Milestone Dates

    Count Days in Phase by using Milestone Dates using the Date Conditions in Column U... This could be a simple solution but I ran into a wall when both date conditions are not met... I've attached a sample file... thx

    Update: I was able to add a formula by searching the forum. However, in column I and O there are some where the previous date condition is not met (it's blank) and it's returning a 5 digit number by default. How can I add an IFERROR so that it comes back a "0" (zero)?

    Update 2: added a new sample file with the errors; Keep in mind that the Details tab pulls from the milestones tab with a vlookup formula. I only pull in the most used milestones out of 30 of them...
    Attached Files Attached Files
    Last edited by rz6657; 05-12-2021 at 11:59 AM.

  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
    81,073

    Re: Count Days in Phase by using Milestone Dates

    Try this:

    =IF(OR(ISBLANK(F4),AND(ISBLANK(F4),ISBLANK(H4))),0,IF(ISBLANK(H4),TODAY()-F4,H4-F4))
    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
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Count Days in Phase by using Milestone Dates

    A bit shorter:

    =IF(F4="","",(H4="")*TODAY()+H4-F4)
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    363

    Re: Count Days in Phase by using Milestone Dates

    These work but when since the other columns have a vlookup formula to pull in the dates, I'm either #VALUE! or #N/A errors. Is there a way to add an IFERROR to still count?

  5. #5
    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
    81,073

    Re: Count Days in Phase by using Milestone Dates

    Provide a workbook that shows the issue you are now describing.

  6. #6
    Forum Contributor
    Join Date
    08-15-2006
    Location
    USA
    MS-Off Ver
    Office 365, 64 bit
    Posts
    363

    Re: Count Days in Phase by using Milestone Dates

    Hi AliGW, I've uploaded a new sample file.

    Update 2: added a new sample file with the errors; Keep in mind that the Details tab pulls from the milestones tab with a vlookup formula. I only pull in the most used milestones out of 30 of them...

  7. #7
    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
    81,073

    Re: Count Days in Phase by using Milestone Dates

    Try this:

    =IFERROR(IF(OR(ISBLANK(F4),AND(ISBLANK(F4),ISBLANK(H4))),0,IF(ISBLANK(H4),TODAY()-F4,H4-F4)),0)

+ 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. Replies: 2
    Last Post: 01-03-2019, 05:36 PM
  2. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2017, 11:03 PM
  3. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2017, 06:35 PM
  4. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2017, 02:19 PM
  5. Formula for vacation days earned annualy with additional days at a milestone
    By poTATEohhh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2015, 08:40 AM
  6. Nested IF function to count days from milestone dates
    By glenpizz1978 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2014, 10:16 AM
  7. Determining project phase based on specified phase time point intervals
    By ElPorko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2008, 09:46 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