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
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!