IF, THEN formula that references a checkbox field and a date field
I'm trying to write an IF, THEN formula that references a checkbox field and a date field, but I keep getting errors. Here's the logic: If the 'EMDS' column is checked, then calculate the 'Date Needed' column minus five days. If seems simple, but it may actually be too complicated for the system since it essentially involves nesting formulas. Here's what I have so far, which is returning an #INVALID COLUMN error: =IF(EMDS@row = 1, [Date Needed]@row - 5,). Any advice is appreciated.
Best Answer
-
=IF([EMDS]@row, [Date Needed]@row - 5)
The column that contains the formula must be a "Date" column.
Answers
-
=IF([EMDS]@row, [Date Needed]@row - 5)
The column that contains the formula must be a "Date" column.
-
Fantastic. It originally was a Date column, but I kept getting the 'Date Expected' error message so I changed it to a Text column. I changed it back to a Date column and now it works exactly as intended. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!