CountIfs with year-function over reference cloumn
Hello,
I'm using the countifs function over a cross reference to another sheet with several counts very well.
But now I want to count, if a date in a reference sheet is in the current year. And I don't want to use a seprate column, where I have only the year.
So I tried the following:
=COUNTIFS(YEAR{Refererence}), 2022) where reference is the column of another sheet with the date I want to check.
So my question is about how to use function on a reference column
Thanks
Kay
Best Answers
-
You would use this:
=COUNTIFS({Reference}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY())
=COUNTIFS({Reference}, IFERROR(YEAR(@cell), 0) = 2022)
-
Thanks Paul, that's what I was looking for !!!!
Answers
-
You would use this:
=COUNTIFS({Reference}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY())
=COUNTIFS({Reference}, IFERROR(YEAR(@cell), 0) = 2022)
-
Thanks Paul, that's what I was looking for !!!!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!