Formulas
Is there a way I can calculate on a metric sheet the number of Sites completed within the last 3 months?
Best Answer
-
You should not need to make any adjustments as it is built off of today's date.
Answers
-
On your metric sheet you would have the primary column have the different word choices of the status. Then your formula would simply be =COUNTIF({Order Tracker Status}, Primary@row)
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
-
but is there way that would filter and count the dates completed to the last 3 months? (or certain months)
-
Do you want past three months from today, a specific set of months, or a specific month?
-
I'd want to show the past 3 full months.
If today was November 20th I'd like to show Aug, Sept, Oct.
-
Ok. Try something along the lines of:
=COUNTIFS({Date Range}, AND(@cell >= IFERROR(DATE(YEAR(TODAY()), MONTH(TODAY()) - 3, 1), DATE(YEAR(TODAY()) - 1, MONTH(TODAY()) + 9, 1)), @cell <= DATE(YEAR(TODAY()), MONTH(TODAY()), 1) - 1))
The above will go back to the first of three months ago and up to the last of the previous month.
-
Genius! that is a very complex formula. So say its December 2nd. The same formula will auto calculate Sept, Oct, Nov ? Or do I need to make any adjustments?
-
You should not need to make any adjustments as it is built off of today's date.
-
Hello, i have an additional request for this same situation. Is there a way to show the breakdown of each month and have the current month displayed in graph and each of the pas three months? And have the months updated based on whatever "todays" date is?
Like display orders completed for the current month - November. Also show orders completed for August. Orders completed for Sept. Order completed for Oct.
Then when its December have the data auto change to show orders completed in Dec. Orders completed for Nov. Orders completed in Oct. -
For this I would suggest inserting a text/number column in your calc sheet. This column would have this going down the rows
3
2
1
0
Then your COUNTIFS would change to this (put in each row it should still be dynamic):
=COUNTIFS({Date Range}, AND(IFERROR(MONTH(@cell), 0) = IF(MONTH(TODAY()) <= Number@row, (12 - Number@row) + MONTH(TODAY()), MONTH(TODAY()) - Number@row), IFERROR(YEAR(@cell), 0) = YEAR(TODAY()) - IF(MONTH(TODAY()) <= Number@row, 1)))
We can also write out a formula to create chart labels that would be dynamic. Feel free to let me know if you need that one and how you would want the labels to look.
-
I really appreciate all your help!
What in your above formula am I changing and/or referencing other cells? Is it "Date Range". What am I relacing that with?
Yes chart labels would be great. If using a bar chart I would need the month names across axis X and then the Y axis would be "New Circuits Completed"
-
You would keep the same range that you are already using. It is the criteria (bold characters) that changes.
For the labels, would you want full month name, month abbreviation, full year, last two of the year, no year, etc…?
Jan. '24
Jan 24
January 2024
Jan
Jan.
January
so on and so forth. What is the format of the actual labels themselves.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 404 Global Discussions
- 215 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!