Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Formula
Can any expert let me know if smartsheet is smart enough to provide number of days from a date column and Status column which is a text column showing several text options. When someone change the status from the drop down menu for example forwarded, cancelled and completed etc, is there any formula that can work to give result in number of days as soon as status changes say today. Again one is DATE column and other is TEXT/NUMBER column.
Thanks
Comments
-
Abdul,
You need two date columns to be able to calculate date difference and there are a couple of functions that can do it, see Help:
WORKDAY(): Returns a date that is the specified number of working days before or after a date.- Example: =WORKDAY([Due Date]5, 6)
- Result: 3/10/14 (US date format)
- Syntax: WORKDAY(start, num_of_days, holiday:holiday)
- Example: =WORKDAY([Due Date]1, 365, [Due Date]2:[Due Date]3)
- Result: 3/30/15 (US date format)
NETDAYS(): Returns the number of days between two dates.- Example: =NETDAYS([Due Date]4, [Due Date]5)
- Result: 29
NETWORKDAYS(): Returns the number of working days between a start date and end date.- Example: =NETWORKDAYS([Due Date]4, [Due Date]5)
- Result: 20
- Syntax: NETWORKDAYS(start, end, holiday:holiday)
- Example: =NETWORKDAYS([Due Date]1, [Due Date]5, [Due Date]2:[Due Date]3)
- Result: 85
NETWORKDAY(): Same, but adds 1 to the result if the first argument is a non-working day.- Example: =NETWORKDAY([Due Date]4, [Due Date]5)
- Result: 21
- Syntax: NETWORKDAY(start, end, holiday:holiday)
- Example: =NETWORKDAY([Due Date]1, [Due Date]5, [Due Date]2:[Due Date]3)
- Result: 85
It the status column has dates as text then that also can be addressed but slightly more complicated.
-
Are you looking for the number of days between a date and when a cell was updated? If the status is the last item to be updated in a row, you can use the Modified (Date) System column (timestamp of when the row was last modified) and the date to calculate the number of days between the two.
-
Very useful. Where do I find these formulas that are available.
Thanks
sree
-
Hi Sree-- All of the operators currently available in Smartsheet are listed here with examples of how they work. You can also check out our Formula Examples template to see all of the operators live in a sheet. Hope this helps!
-
Thank you Kennedy. That was very helpful. :-)
-
Hello, How do I combine two formulas into one cell? Here's what I'm trying to do:
Each of these formulas works, but I'd like to combine them so that if a task is not yet completed it shows up as "open". If it is completed, it shows how many days it took to complete.
=NETWORKDAYS([Date completed]1, [Date submitted]1)
=IF(ISBLANK([Date completed]1), "Open")
I appreciate any advice!
-
I am trying to calculate the number of days between Today - Issue Open Date, below formula gives me #INVALID DATA TYPE
=NETDAYS(TODAY(), [Issue Open Date]1)
Like Today - 5/19/2019 = 1
-
Is [Issue Open Date] a date column?
If its not you will need to use the Date()
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.7K Get Help
- 434 Global Discussions
- 136 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 485 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives