How to count a field which has a certain character in it.
I have a field with the date formatted as 09/30/2024. I would like to summarize that field with the count of lines containing 09 and 2024 (so basically by the month and year).
I am attempting just for the month and can not get it to work.
=COUNTIFS([Next Renewal Date]:[Next Renewal Date], CONTAINS("09")
But I would also like it to look at the year if possible.
Best Answer
-
I always have a MONTH column and YEAR column on all my sheets. They have formulas that look at dates that are just =MONTH([Next Renewal Date]@row) and =YEAR([Next Renewal Date]@row). Then I use my COUNTIFS formula based off of those because with your current formula it will also count the ninth day of every month.
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate
Answers
-
I always have a MONTH column and YEAR column on all my sheets. They have formulas that look at dates that are just =MONTH([Next Renewal Date]@row) and =YEAR([Next Renewal Date]@row). Then I use my COUNTIFS formula based off of those because with your current formula it will also count the ninth day of every month.
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate
-
Thank you! I was thinking that was the answer but was unsure if there was a way to "Look up". I will adjust the sheet and separate the month and year.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 446 Global Discussions
- 144 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!