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
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!