Using IF Statement & DATE
I'm trying to combine formulas that if a check box is clicked, it returns the number 7 to me or else it runs a formula for subtracting dates from TODAY but unfortunately I keep getting #INVALID DATA TYPE
=IF(OR(COMPLETE@row, "7"), (TODAY() - DATE@row))
Any help would be great appreciated. Thanks.
Best Answer
-
Assuming COMPLETE is a check box then try
=IF(COMPLETE@row=1,7,TODAY() - DATE@row)
Evaluating a checkbox is 1 if selected, 0 if not. So thus the COMPLETE@row=1 .
If the is true, then return 7, else return the number of days between the date and today.
✅Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
Answers
-
Assuming COMPLETE is a check box then try
=IF(COMPLETE@row=1,7,TODAY() - DATE@row)
Evaluating a checkbox is 1 if selected, 0 if not. So thus the COMPLETE@row=1 .
If the is true, then return 7, else return the number of days between the date and today.
✅Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!