Help! Cannot get COUNTIFS formula to work
Answers
-
What does this one do?
=COUNTIFS({Multi-County Range 1}, CONTAINS("T2", @cell))
-
@Paul Newcome When I put that in it gives me all T2's for the previous year as well as the current time frame and if I add in the range for dates it gives me an #unparsable error.
-
Can you copy/paste from the sheet the one throwing that error when you add in the range for the dates?
-
=COUNTIFS({Multi-County Range 1}, CONTAINS("T2", @cell)), {Multi-County Range 2}, AND(IFERROR(MONTH(@cell), 0) >= 7, IFERROR(MONTH(@cell), 0) <= 9, IFERROR(YEAR(@cell), 0) = 2023))
-
What happens when you remove one of the closing parenthesis from after the CONTAINS function?
-
@Paul Newcome It works...lol... now how do I get it to count all that plus give the count by person?
-
Now we should just have to add that in as another range/criteria set.
=COUNTIFS({Multi-County Range 1}, CONTAINS("T2", @cell)), {Multi-County Range 2}, AND(IFERROR(MONTH(@cell), 0) >= 7, IFERROR(MONTH(@cell), 0) <= 9, IFERROR(YEAR(@cell), 0) = 2023), {Multi-County Range 3}, @cell = "Cheyney Cushing")
-
That worked! Would it be possible to use the CONTAINS("Cheyney Cushing", @ cell) - in the off chance more than one team member works on a "T2"? And if so, what would that look like?
And to continue for the other sheets I need it to look at for data, would I just use this formula and add +COUNTIFS for the remaining sheets?
-
I tried this for my first question above and it worked.
=COUNTIFS({Multi-County Range 1}, CONTAINS("T2", @cell), {Multi-County Range 2}, AND(IFERROR(MONTH(@cell), 0) >= 7, IFERROR(MONTH(@cell), 0) <= 9, IFERROR(YEAR(@cell), 0) = 2023), {Multi-County Range 3}, CONTAINS("Cheyney Cushing", @cell))
And using that theory, I added a +COUNTIFS to have it look at an additional sheet and what do you know, it actually worked! So now I will just keep going! And thanks for always being such a HUGE help to novices like me who are trying to do things way beyond their brain power capacity!
-
Happy to help. 👍️
Keep in mind... If you ever decide to convert the name column to a contact type or use the same logic on a contact type column, you will need to switch over to the HAS function because the CONTAINS function does not work reliably on contact type columns.
-
You can bet I will be coming right back here to you if that happens! In the meantime instead of a rain dance I will do a "no contact type columns" dance 🤣
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!