#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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!