Variable in DATEONLY formula to allow for a non-date value
I am pulling info from a date column on a project sheet, but in some cases the date value is "N/A" (which is not a date value). I have a secondary colum in my metadata that feeds a portfolio summary sheet. Currently is a formula that is DATEONLY, but I need it to be able to return the "N/A" value instead of "INVALIDDATA". What is the best way to revise this formula?
=DATEONLY(Date@row) + ""
Best Answer
-
Hi, @Dana S, modify your formula to
= IFERROR( DATEONLY(Date@row), "N/A")
this will catch the error when the value of Date@row is not a date.
Answers
-
Hi, @Dana S, modify your formula to
= IFERROR( DATEONLY(Date@row), "N/A")
this will catch the error when the value of Date@row is not a date. -
That worked! Thank you very much for your assistance.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!