Filter by year
I am trying to count meetings based on the week number and year. I have the week number but can't figure out how to filter by year. As an example, my current formula for week #44 is
=COUNTIF({IT Meeting}, IFERROR(WEEKNUMBER(@cell), 0) = 44)
How do I filter for 2021 or 2022?
Best Answers
-
Try this...
=COUNTIFS({IT Meeting}, AND(IFERROR(WEEKNUMBER(@cell), 0) = 44, IFERROR(YEAR(@cell), 0) = 2022))
-
That did it. Thank you Paul
Answers
-
Good Morning
You could use a helper column and add the below formula.
=VALUE(IF(AND(WEEKNUMBER([IT Meeting]@row) = 44, RIGHT([IT Meeting]@row, 2) = 21), 1, 0))
then just do a count if =1
-
I want to be able to count the number of non-blank cells based on the year in the IT Meeting column. In your example, all dates are in 2021. If there was a mix of 2021 and 2022 dates how can I count just the cells for 2022?
-
Try this...
=COUNTIFS({IT Meeting}, AND(IFERROR(WEEKNUMBER(@cell), 0) = 44, IFERROR(YEAR(@cell), 0) = 2022))
-
That did it. Thank you Paul
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 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
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!