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.
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
- 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!