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
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!