Guild of Project Controls: Compendium | Roles | Assessment | Certifications | Membership

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

Schedule date calcs in Excel

5 replies [Last post]
John Reeves
User offline. Last seen 1 day 16 hours ago. Offline
Joined: 10 May 2013
Posts: 343
Groups: None

So to calc a completion date in excel that includes the NTP date itself is @sum((A1+A2)-1) because excel does not count the NTP date in that formula.  With a A1 being the NTP date and A2 being that Calendar Days.  Are there any other, or different formulas you use to quickly calc dates in excel. (I see date off by 1 all the time.)

Replies

Zoltan Palffy
User offline. Last seen 3 weeks 3 days ago. Offline
Joined: 13 Jul 2009
Posts: 3089
Groups: None

one way in excel is to make the NTP date 1 days less than what it is in p6 and all dates wil then work out to match p6

so all you need to do is adjust the starting date which is NTP

Rafael Davila
User offline. Last seen 13 hours 7 min ago. Offline
Joined: 1 Mar 2004
Posts: 5229

Use date-hour format for granularity.

2022-01-07-05-47-46

Try Date Formulas showing date-hours

2022-01-07-07-22-15

Rodel Marasigan
User offline. Last seen 52 min 19 sec ago. Offline
Joined: 25 Oct 2006
Posts: 1699

Thanks Santosh, Typical NTP contract interpretation is using Finish Milestone and not Start Milestone that is why the Contract defines NTP + ? days = completion date. That's why I am confused on the formula being used. Also if the data is coming from P6 using copy paste or export (it depends on the setting and layout of the user) whether the time is shown or not otherwise the data is always whole number format or 12:00AM therefore in excel it always count as 1 day and not a fraction of a day.

Santosh Bhat
User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 15 Apr 2005
Posts: 381

Rodel, It does depend on the nature of the task being assessed. Generally, a one day task in scheduling will be the same date, consider a task starting 1-Jan at 08:00 and of duration one day. The date will still be 1-Jan, but the time will be 17:00. 

In Excel, a value of 1 is calculated as a whole 24hr Day. so to check how calcs are being performed in Excel, you will need to display the number format to include hh:mm

 

John, a few I use:

  • edate - calculate the same date a number of months plus or minus
  • yearfrac - caluclate the % of a year between two dastes
  • datedif - calculate the difference between two dates in various methods, days, months etc.
  • eomonth - calculate the end of the month (or multiple months) from a certain date
  • Weekday - returns the day of the week from 1-7 of a date (useful if you need to know if its a weekend or not

Excel is good for dates, just make sure you view the time also as scheduling tools may export the date & time as a fraction of a day, and this can through Excel calcs out.

Rodel Marasigan
User offline. Last seen 52 min 19 sec ago. Offline
Joined: 25 Oct 2006
Posts: 1699

Not sure how are you interpreting the formula and your understanding of NTP + ?days (completion date). To make it simple lets say NTP + 1 day = completion date. Say NTP = 1 Jan 2022 + 1 day = 2 Jan 2022. If I used your formula, @sum((NTP + 1 day) - 1), the completion date will be still 1st Jan 2022? which make no sense.