Formula assistance: adding 12 weeks to a date.
Hi,
Can anyone please help me setting up a formula that add 12 weeks to a date. Say if in my main Smartsheet I have populated 10 different dates then I want my "stats" sheet to have a count if formula that adds 12 weeks to all the dates.
Best Answers
-
Hi @sahilhq
One way to do this would be to include a hidden helper column in the sheet with the dates. Then you can use a simple formula like this to add on a certain number of dates:
=[Date Column]@row + 84
This will add 84 days, or 12 weeks, to the date in that current row. You can then drag-fill this down your helper column and it will add this to each of your dates. (See here for more information on adding days like this to dates.)
Then in your second sheet, you could either use an INDEX(MATCH formula to pull this date, or use cell-links to bring in the correct data.
If this wouldn't work for you, it would be helpful to see some screen captures as Andrée suggested above. (Please block out any sensitive data).
Thanks!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
If you just want to count dates that are within a certain number of days from TODAY(), you can use TODAY(84) or TODAY(-84).
=COUNTIFS(Date:Date, @cell <= TODAY(84))
=COUNTIFS(Date:Date, @cell >= TODAY(84))
To actually add 84 days to the date in the middle of a COUNTIFS calculation, you would need to use this:
=COUNTIFS(Date:Date, DATE(YEAR(@cell), MONTH(@cell), DAY(@cell)) + 84 = .........................................)
If there is the possibility of blank cells or non-date values within your range though, you would need to work in an IFERROR statement to generate a date outside of the range you are wanting to evaluate against.
Answers
-
Hi Sahil,
Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post help or 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!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hi @sahilhq
One way to do this would be to include a hidden helper column in the sheet with the dates. Then you can use a simple formula like this to add on a certain number of dates:
=[Date Column]@row + 84
This will add 84 days, or 12 weeks, to the date in that current row. You can then drag-fill this down your helper column and it will add this to each of your dates. (See here for more information on adding days like this to dates.)
Then in your second sheet, you could either use an INDEX(MATCH formula to pull this date, or use cell-links to bring in the correct data.
If this wouldn't work for you, it would be helpful to see some screen captures as Andrée suggested above. (Please block out any sensitive data).
Thanks!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
If you just want to count dates that are within a certain number of days from TODAY(), you can use TODAY(84) or TODAY(-84).
=COUNTIFS(Date:Date, @cell <= TODAY(84))
=COUNTIFS(Date:Date, @cell >= TODAY(84))
To actually add 84 days to the date in the middle of a COUNTIFS calculation, you would need to use this:
=COUNTIFS(Date:Date, DATE(YEAR(@cell), MONTH(@cell), DAY(@cell)) + 84 = .........................................)
If there is the possibility of blank cells or non-date values within your range though, you would need to work in an IFERROR statement to generate a date outside of the range you are wanting to evaluate against.
-
@Genevieve P @Paul Newcome Thanks both! :)
-
Happy to help! 👍️
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
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!