Calculate amount of time between two dates but also include an IF
Answers
-
How do you calculate the amount of time between two dates but also include an IF? For example, I want to calculate the amount of time between two dates but only specific to a particular column of data. In this case it is the duration for negotiating a Master Agreement with the Agreement type included in a separate column.
-
Hey @Kristin Rankin
Give this a try and then we can tweak with more details.
=IF([whatever your column name]@row="Whatever agreement type", NETWORKDAY([your start date]@row, [your end date]@row))
This formula will return the number of working days between the two dates. If you want total days, replace NETWORKDAY with NETDAYS (the difference in plural and singular is intentional).
cheers,
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!