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
- Customer Resources
- 66.1K Get Help
- 430 Global Discussions
- 149 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 154 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!