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
- 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!