Counifs Dates from 3 columns
I have searched the threads and tried so may formula options and none worked...hoping someone can help me figure out why my formula is not counting the number of text occurances in three different cells in my sheet
Here is my sheet:
and in my Total Minor field I want to show the number of occurrences of the word "Minor" in the three highlighted cells
My current formula is:
=COUNTIFS([Dorm Cleanliness Grading & Benchmark ID]@row, CONTAINS("Minor", @cell), [Adequate Living Space Grading & Benchmark ID]@row, CONTAINS("Minor", @cell), [Exterior Build. Appearance Grading & Benchmark ID]@row, CONTAINS("Minor", @cell))
This formula is resulting in a count of only "1" instead of the correct number "3"
Can anyone help fix this issue?
Best Answer
-
Think of the COUNTIFS as saying "and" between your criteria... it's counting if the current row contains "minor" in this cell, and if it contains "minor" in this other cell, and if it contains "minor" in the third cell. If all 3 criteria are met, it counts the row (meaning the count = 1). Instead, it sounds like you want to count each instance of "minor".
Here you'll want 3 separate count statements added together, like so:
=COUNTIF(cell, criteria) + COUNTIF(cell, criteria) + COUNTIF(cell, criteria)
Try:
=COUNTIF([Dorm Cleanliness Grading & Benchmark ID]@row, CONTAINS("Minor", @cell)) + COUNTIF([Adequate Living Space Grading & Benchmark ID]@row, CONTAINS("Minor", @cell)) + COUNTIF([Exterior Build. Appearance Grading & Benchmark ID]@row, CONTAINS("Minor", @cell))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Think of the COUNTIFS as saying "and" between your criteria... it's counting if the current row contains "minor" in this cell, and if it contains "minor" in this other cell, and if it contains "minor" in the third cell. If all 3 criteria are met, it counts the row (meaning the count = 1). Instead, it sounds like you want to count each instance of "minor".
Here you'll want 3 separate count statements added together, like so:
=COUNTIF(cell, criteria) + COUNTIF(cell, criteria) + COUNTIF(cell, criteria)
Try:
=COUNTIF([Dorm Cleanliness Grading & Benchmark ID]@row, CONTAINS("Minor", @cell)) + COUNTIF([Adequate Living Space Grading & Benchmark ID]@row, CONTAINS("Minor", @cell)) + COUNTIF([Exterior Build. Appearance Grading & Benchmark ID]@row, CONTAINS("Minor", @cell))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
BRILLIANT!! That worked!! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 468 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!