Adding the year into a formula
Hello
Please can someone assist me with the following formula? I need to add the year in so that it isn't adding up everything in February each year. I need it to return the year 2021, 2022 and so on (not only the 'current' year).
=COUNTIFS({IMS005.03 Incident, Near Miss and Hazard R Range 2}, "Yes", {IMS005.03 Incident, Near Miss and Hazard R Range 4}, IFERROR(MONTH(@cell), 0) = 2)
Best Answer
-
Hi @Melanie Paff do you have a snapshot of the sheet and data? Otherwise, can you add a third range & criteria?
=COUNTIFS({IMS005.03 Incident, Near Miss and Hazard R Range 2}, "Yes", {IMS005.03 Incident, Near Miss and Hazard R Range 4}, IFERROR(MONTH(@cell), 0) = 2, {IMS005.03 Incident, Near Miss and Hazard R Range 4}, IFERROR(YEAR(@cell), 0) = 2022 etc.
Answers
-
Hi @Melanie Paff do you have a snapshot of the sheet and data? Otherwise, can you add a third range & criteria?
=COUNTIFS({IMS005.03 Incident, Near Miss and Hazard R Range 2}, "Yes", {IMS005.03 Incident, Near Miss and Hazard R Range 4}, IFERROR(MONTH(@cell), 0) = 2, {IMS005.03 Incident, Near Miss and Hazard R Range 4}, IFERROR(YEAR(@cell), 0) = 2022 etc.
-
This is perfect - thank you!!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!