Year and Month
Hello, could someone please assist me with this formula? I calculate the number of 'improvements' each month but as we have gone into a new financial year it's calculating June 2021 and June 2022 (and so on)- how do I add a 'year' function to this?
=COUNTIFS({IMS005.04 Improvement Request and Non-Conf Range 2}, "Improvement", {IMS005.04 Improvement Request and Non-Conf Range 1}, IFERROR(MONTH(@cell), 0) = 7)
Answers
-
Hey @Melanie Paff
I added the YEAR function to the COUNTIFS. Instead of hard coding the value in (you can if you wish), I made it equal to the current year using the TODAY() function.
=COUNTIFS({IMS005.04 Improvement Request and Non-Conf Range 2}, "Improvement", {IMS005.04 Improvement Request and Non-Conf Range 1}, IFERROR(MONTH(@cell), 0) = 7,{IMS005.04 Improvement Request and Non-Conf Range 1}, IFERROR(YEAR(@cell), 0) =YEAR(TODAY()))
Will this work for you?
Kelly
-
Thanks Kelly, thats helpful. Do you mind letting me know how to hard code the year as I need to show a rolling average so the data spans multiple years?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!