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.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!