Totaling up Days between Dates

Hello,
If someone could assist me please that knows how.
I am trying to get the total days calculated automatically between two dates.
i.e 1st Sept 2019 to 15th Jan 2020 - How fo I get the total days calculated.
Do let me know please.
Thank you
Comments
-
Hi Gordon,
Depending on what you need, there are several different ways to get the number of days between dates.
You can use the Duration feature if you have set up the Project Settings for the sheet and enabled Dependencies.
You can use on of the Functions below:
Try something like.
=NETDAYS([Start Date]@row; [End Date]@row)
=NETWORKDAY([Start Date]@row; [End Date]@row)
=NETWORKDAYS([Start Date]@row; [End Date]@row)
More info: https://help.smartsheet.com/functions
Hope that helps!
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thanks you that's is quite helpful.
-
Excellent!
Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hi Andree
What would one put around that function to show a zero when the dates haven't yet been selected for the function to calculate?
Thanks
Cheers
Richard
-
Hi Richard,
Try something like this.
=IF(OR(ISBLANK([Start Date]@row); ISBLANK([End Date]@row)); ""; NETDAYS([Start Date]@row; [End Date]@row))
The same version but with the below changes for your and others convenience.
=IF(OR(ISBLANK([Start Date]@row), ISBLANK([End Date]@row)), "", NETDAYS([Start Date]@row, [End Date]@row))
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it work?
Hope that helps!
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E: andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.