Using Find with COUNTIFS
I am trying to create a formula that references another sheet and counts how many times the name "James Comito" appears in column A and B if column C is marked as "PSG".
Here is the formula I have, when I split it up into two separate formulas, it works, but when I combine I get incorrect argument.
=COUNTIFS({ARG/PSG Project Tracker Range 5}, FIND("James Comito", @cell) > 0, {ARG/PSG Project Tracker Range 2}, "PSG")
Any suggestions?
Follow up to above post -
After reading other posts, I think it is because of the multiple cell reference in one instance but not in the other. I got this formula to work
=COUNTIFS({ARG/PSG Project Tracker Range 1}, FIND("James Comito", @cell) > 0, {ARG/PSG Project Tracker Range 2}, "PSG", {ARG/PSG Project Tracker Range 3}, 0) + COUNTIFS({ARG/PSG Project Tracker Range 4}, FIND("James Comito", @cell) > 0, {ARG/PSG Project Tracker Range 2}, "PSG", {ARG/PSG Project Tracker Range 3}, 0)
My follow up question is I need to do countifs for when "PSG" also says "SME", "ARG", or "NLT", is there a way to somehow combine "PSG, SME, ARG, NLT" so I don't have to keep repeating +countifs ?
Thank you for your help!
Answers
-
Hey @j.cantwell
Try this
=COUNTIFS({ARG/PSG Project Tracker Range 1}, FIND("James Comito", @cell) > 0, {ARG/PSG Project Tracker Range 2}, OR(@cell="PSG", @cell="SME", @cell="ARG", @cell="NLT"), {ARG/PSG Project Tracker Range 3}, 0) + COUNTIFS({ARG/PSG Project Tracker Range 4}, FIND("James Comito", @cell) > 0, {ARG/PSG Project Tracker Range 2}, OR(@cell="PSG", @cell="SME", @cell="ARG", @cell="NLT"), {ARG/PSG Project Tracker Range 3}, 0)
-
This worked, thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!