Basic NETDAYS Help!
Disclaimer: I'm a SmartSheet beginner, and only at an amateur level with Excel formulas.
I've reviewed quite a few NETDAYS posts on here already and tried variations of the solutions in all, but so far every NETDAYS variation I've tried has returned the #UNPARSEABLE error.
I'm trying to write a formula that will calculate the # of days from "Date Submitted" column to "Date Closed" column, and if the "Date Closed" cell is blank, to calculate to Today's Date instead.
=NETDAYS([Date Submitted]@row, [Date Closed]@row)
=IFERROR(NETDAYS([Date Submitted]@row, IF(ISDATE([Date Closed]@row, [Date Closed]@row, TODAY())), 0)
Does anyone have suggestions for how to modify the formula to get rid of the #UNPARSEABLE errors?
Thank you so much in advance!
Best Answer
-
@LDenton okay, looks like you just have some parenthesis in the wrong place. Try this
=IFERROR(NETDAYS([Date Submitted]@row, IF(ISDATE([Date Closed]@row), [Date Closed]@row, TODAY())), 0)
also keep in mind that the today formula will only work if you open and save the sheet. Refer to this help article if you need it to update every day without opening the sheet.
Automatically update the TODAY function in formulas | Smartsheet Learning Center
Answers
-
@LDenton "Data submitted" is actually a date column right? Kind of looks like your primary column.
-
Hi Samuel!
Yes, "Date Submitted" is a date-formatted column. My primary column for this sheet is separate.
-
@LDenton okay, looks like you just have some parenthesis in the wrong place. Try this
=IFERROR(NETDAYS([Date Submitted]@row, IF(ISDATE([Date Closed]@row), [Date Closed]@row, TODAY())), 0)
also keep in mind that the today formula will only work if you open and save the sheet. Refer to this help article if you need it to update every day without opening the sheet.
Automatically update the TODAY function in formulas | Smartsheet Learning Center
-
Thank you so much Samuel, your suggestion worked like a charm! I really appreciate your help!
-
Happy to help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!