#INVALID DATA TYPE

Cathy Fraser
✭✭✭✭✭
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
Tags:
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
- Customer Resources
- 67.5K Get Help
- 466 Global Discussions
- 156 Industry Talk
- 510 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 520 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!