COUNTIFS issue
I am pulling data from another sheet in SmartSheets using the COUNTIFS function. I want to count all the times the words "Parish Center" is used in the other page's column. For some reason, however, this function fails to count and it just says zero. I suspect it has something to do with the fact "Parish Center" comes up in the middle of a bunch of other entries in the column such as "Primary School" and "Campus Exterior". How can I ensure the COUNTIFS function will count ALL of the times "Primary School" comes up in the original column?
Best Answer
-
Try using it with a CONTAINS function, similar to this below:
=COUNTIFS(Position:Position, CONTAINS("Parish Center", @cell)
Answers
-
Try using it with a CONTAINS function, similar to this below:
=COUNTIFS(Position:Position, CONTAINS("Parish Center", @cell)
-
Hello Nic,
Thanks for the help, however, it doesn't seem to work. I tried to pull the data from the same sheet just in case. IN my photos below I am pulling that data from the Buildings column into the helper column, however it comes up as an error.
Error:
Thanks!
-
Looks like you put @row vs @cell. Update your formula and see if that helps.
-
Thanks Nic it works! God bless.
-
Another question. How would I modify this line so that I pull this data from another sheet? Thanks!
-
When writing the formula on the sheet you want the results, you need to select the link that says Reference Another sheet as shown in this image, look up sheet, and pick the column to count, and then add the criteria just as you did:
-
Thanks that works!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!