SUMIF sum of the number of cells meeting a text condition
I'd like to add up the number of boxes with the same condition. For example, in column 1 I would like to count how many times I have the word nature. When I use SUMIF to do this it doesn't works.
Best Answer
-
Hello @Julietteenherbe,
I have detailed a couple of options that might work for you below.
Option 1 - If your column will have the word "Nature" on its own in a cell, the following will count the number of cells if it is equal to "Nature"
=COUNTIF([Column2]:[Column2], "Nature")
Option 2 - If your column will contain the word "Nature" among other text, it might be more effective to include the use of the CONTAINS function to count if the cell contains the word "Nature" somewhere in the cell as per the example below.
=COUNTIF([Column2]:[Column2], CONTAINS("Nature", @cell))
I hope that is helpful to you in some way,
Protonsponge
Answers
-
Hello @Julietteenherbe,
I have detailed a couple of options that might work for you below.
Option 1 - If your column will have the word "Nature" on its own in a cell, the following will count the number of cells if it is equal to "Nature"
=COUNTIF([Column2]:[Column2], "Nature")
Option 2 - If your column will contain the word "Nature" among other text, it might be more effective to include the use of the CONTAINS function to count if the cell contains the word "Nature" somewhere in the cell as per the example below.
=COUNTIF([Column2]:[Column2], CONTAINS("Nature", @cell))
I hope that is helpful to you in some way,
Protonsponge
-
Awesome it works, thanks a lot
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!