#INVALID DATA TYPE
Hi, I am using the following formula that calculates the # of days between a date field and TODAY(). I have an issue if there is no date in the field and giving an #Invalid Data Type error. I would like it to either be blank or if possible to say "Please provide a Date"
Formula
=NETWORKDAYS([Lease Stage Date Changed]1, TODAY())
Thanks for your help in advance
Cathy
Comments
-
Hi Cathy,
This should be able to be solved with an IFERROR formula.
IFERROR produces a value (your original formula) as the first option and if it is blank, it will return a second value.
Try this formula:
=IFERROR(NETWORKDAYS(date2, TODAY()), " ")
I have put your original formula in bold. This should solve the problem-- hope it helps!
-
Thanks Shdil, the formula worked great.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 216 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!