Need help with COUNTIFS, CONTAINS, AND
I am stumped and cannot find an example. I want to count the cell in range 1 contains the word "flight" and the cell in range 4 on the same row contains the word "enterprise"
This gives #incorrect argument:
=COUNTIF({2022 Project List Range 1}, CONTAINS("flight", @cell), AND({2022 Project List Range 4}, CONTAINS("enterprise", @cell)))
This gives #invalid data type:
=COUNTIFS({2022 Project List Range 1}, "Pushed to 2022", AND({2022 Project List Range 4}, CONTAINS("enterprise")))
Thanks!
Best Answer
-
Your first one is going to be the closest. You just don't need the AND function because it is implied in a COUNTIFS.
=COUNTIF({2022 Project List Range 1}, CONTAINS("flight", @cell), {2022 Project List Range 4}, CONTAINS("enterprise", @cell))
Answers
-
Your first one is going to be the closest. You just don't need the AND function because it is implied in a COUNTIFS.
=COUNTIF({2022 Project List Range 1}, CONTAINS("flight", @cell), {2022 Project List Range 4}, CONTAINS("enterprise", @cell))
-
Thank you @Paul Newcome that worked perfectly beginning with =COUNTIFS
-
Happy to help. 👍️
And that's what I get for copy/pasting and not proofing before posting. Haha. Glad you caught that.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!