Can SS return an actual Date using Today formula?
I'm using a simple formula to see if a Date falls within the next week, two weeks, three weeks, etc.
Can Smartsheet actually return the Date or Week that this falls in?
=COUNTIFS([Calc if Done]@row, =0, [End Date]@row, AND(@cell >= TODAY(), @cell <= TODAY(+7)))
Appreciate all the brain power that's out there!
Jeana
Best Answer
-
I'm assuming in your example, the top row is the parent of the rest of the rows?
If you want to return the max date in the children range if ANY of the rows are in the next week, then this is your formula:
=IF(HAS(CHILDREN([Next Week]@row), 1), MAX(CHILDREN([End Date]@row:[End Date]@row)))
and it should return 11/17/20
If however you want to return the max date only for those rows that are in the next week (have a 1 in the Next Week Column) then this is your formula:
=MAX(COLLECT(CHILDREN([End Date]@row), CHILDREN([Next Week]@row), 1))
If this still doesn't help, let's keep at it! Send me more info and we'll get you going.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
Answers
-
If I understand you correctly, you want a formula that returns a date that's 1, 2, 3, etc weeks out?
If that's the case, create a Date column and use the formula =TODAY(n) where n is the number of days out. 7 for 1 week, 14 for 2, etc.
Is that what you're looking for?
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
@Ramzi K Well, sort of. I have formula that will tell me IF a specific date is so many days/weeks in the future. What I'm looking for is the actual date to be returned. My current formula returns a 1 or 0 if the conditions are met. I want it to return the actual date - 10/20/2020 for example.
Thanks,
Jeana
-
Got it. So one thing you can do is this:
=IF((Your Formula)=1, TODAY(([End Date]@row - TODAY()),"")
So basically it says that if your condition is true return Today's date + the number of days between today and the End Date.
This formula would need to go into a column of type Date
I hope this helps.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
Thanks Ramzi but I'm still not getting a date returned. I'm not just counting the days on this one, I want to know what the date is when the formula says TODAY(+14)
Appreciate your time.
Jeana
-
Jeana, it may be best if you shared a screenshot or perhaps the sheet itself (to ramzi@cedartreeconsulting.com). It would give me a better idea of what you are trying to do.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
Ramzi, I was typing out the logic to better explain what I'm looking for when it hit me!!! I HAVE the date I'm looking for, I just need to collect the range. So here's my new question.
I want the formula to determine if a date range (CHILDREN([End Date]:[End Date]) is in the next 7 days. If it is then return the MIN of the date range.
I'm trying this formula to do it and it's not quite working.
Thank you!
-
I think I almost have it. This formula returns Invalid Data Type???? The column is set as a Date column.
=IF(CHILDREN([Next Week]@row:[Next Week]@row), =1, MAX(CHILDREN([End Date]@row:[End Date]@row)))
-
I'm assuming in your example, the top row is the parent of the rest of the rows?
If you want to return the max date in the children range if ANY of the rows are in the next week, then this is your formula:
=IF(HAS(CHILDREN([Next Week]@row), 1), MAX(CHILDREN([End Date]@row:[End Date]@row)))
and it should return 11/17/20
If however you want to return the max date only for those rows that are in the next week (have a 1 in the Next Week Column) then this is your formula:
=MAX(COLLECT(CHILDREN([End Date]@row), CHILDREN([Next Week]@row), 1))
If this still doesn't help, let's keep at it! Send me more info and we'll get you going.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
Just what I was looking for! Thank you so much!
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
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!