Formula using WORKDAY, TODAY, ISBLANK - #INCORRECT ARGUMENT
I want to calculate the number of days that a ticket is in Backlog.
[Ticket Status]@row = "Backlog"
WORKDAY([Date Submitted]@row, TODAY()) is the number of days from the date of submission to current date.
I realize that my Date Submitted cell sometimes is blank so I added:
NOT(ISBLANK([Date Submitted@row]) check. Now it is:
=IF(AND([Ticket Status]@row = "Backlog", NOT(ISBLANK([Date Submitted]@row)), WORKDAY([Date Submitted]@row, TODAY()), 0))
So IF the conditions of Ticket Status is Backlog AND the cell of Date Submitted is Not Blank THEN calculate the days from Date Submitted to Today else return 0.
I get #INCORRECT ARGUMENT
Best Answer
-
Hi @markh10 ,
I think the main issue is just that you need to use NETWORKDAYS instead of WORKDAY, so it would be like this:
=IF(AND([Ticket Status]@row = "Backlog", NOT(ISBLANK([Date Submitted]@row))), NETWORKDAYS([Date Submitted]@row, TODAY()), 0)
Answers
-
Hi @markh10 ,
I think the main issue is just that you need to use NETWORKDAYS instead of WORKDAY, so it would be like this:
=IF(AND([Ticket Status]@row = "Backlog", NOT(ISBLANK([Date Submitted]@row))), NETWORKDAYS([Date Submitted]@row, TODAY()), 0)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!