If statement using date less than number of days
Hi, I am trying to write a statement so say if the date in the column is over 10 years from that date, I need to flag it if not then no flag. Any suggestions?
Answers
-
An easy way, adding 3.650 days to that day. And IF(DATE+3650<TODAY(); 1; 0)
Something like this. Take into account that you would have a couple of leap.years, so maybe better add 3.652 days
-
Hi, that is not working. I have a column that has a date that I need to add the 10 years to 3650 days. Any other suggestions?
-
Hi @sholmes,
Are you trying to determine if the date is 10 years before today, 10 years after today, or within 10 years of today in either direction?
Thanks.
-
@DKazatsky2 I am trying to determine if the date is 10 years after the date that is listed in the column. The dates in the column vary by the project, if it has been 10 years since that date we need to know so wanted it flag to make it stand out so the viewers will take the additional step when needed. I also need to know if it's 10 years after the date in the column and if there is a value in another column, this is what I need to trigger the flag.
-
Give this a try.
=IF(Date@row + 3650 < TODAY(), 1, 0)
Change the semi-colon to coma in the original formula suggested.
Hope this helps,
Dave
-
Thanks @DKazatsky2 but it is still not working
I am using =IF(QQ. Acquisition Closing Date@row + 3650 < TODAY(), 1, 0) b/c the column name is the one that starts with QQ that has the original date that I am trying to determine 10 years after. I get the #unpearsable message.
-
If a column name has spaces, it needs to be inside square brackets - [].
=IF([QQ. Acquisition Closing Date]@row + 3650 < TODAY(), 1, 0)
-
Thanks, all set now. I really appreciate it!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 304 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!