If And Formula for between dates
I'm trying to write a formula to return a "1" if the reference date falls between two dates.
The highlighted Q1 should show a result of "1" based on the criteria further down the sheet as shown below.
=IF(AND([Planned Date]@row >= $[Actual SIP Date]$177, [Planned Date]@row <= $[shipped On time]$177), "1", "") returns a #INVALID OPERATION error.
For reference, the $[Actual SIP Date]$177 is the location (column header and row) of where the blue highlighted cell is located.
Any help would be appreciated.
Thank you.
Amy
Best Answer
-
Hello Amy!
Your formula looks correct, when you get #invalidad operation could be that the columns where your dates reside are not formatted as dates and that gives the error, check each column and make sure the column type is date maybe that is your problem.
Hope this could be useful, good vibes to you!
J
Answers
-
Hello Amy!
Your formula looks correct, when you get #invalidad operation could be that the columns where your dates reside are not formatted as dates and that gives the error, check each column and make sure the column type is date maybe that is your problem.
Hope this could be useful, good vibes to you!
J
-
Thank you! It would have taken me forever to figure that out! It was that the second operation was not in a date column.
I appreciate this!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!