Adding together multiple COUNTIFS?
Hey everyone. I'm trying to implement a formula that will allow me to reference two ranges from one sheet and follow the specified criteria that is given to them.
My most recent attempt;
=COUNTIFS({Unit_Type}, "CP2 - Double", {ACCS Overall}, [T2]26) + COUNTIFS({Unit_Type}, "CP4 - Double", {ACCS Overall}, [T2]26) + COUNTIFS({Unit_Type}, "CP4-SP - Double", {ACCS Overall}, [T2]26) + COUNTIFS({Unit_Type}, "KP1S - Double", {ACCS Overall}, [T2]26)
Unfortunately, this comes up as #INCORRECT ARGUMENT SET
What goal I want to accomplish;
I need to add together all the ACCS being used based on certain criteria (for example: add together all Unit Types that are using a SVA025-C-L, but only if they are one of the following: CP2 - Double, CP4 - Double, CP4-SP - Double, or KP1S - Double).
Formula: SVA025-C-L (CP2 - Double) + SVA025-C-L (CP4 - Double) + SVA025-C-L (CP4-SP - Double) + SVA025-C-L (KP1S - Double)
Steps to accomplish said goal;
- Setup the ranges I will need to utilize in the first sheet (Double Camera System) from the other sheet (Cameras). The two ranges I'll be using are Unit_Type and ACCS Overall.
- Define the criteria for both ranges:
- Unit_Type is searching for CP2 - Double, CP4 - Double, CP4-SP - Double, and KP1S - Double.
- ACCS Overall is searching for SVA025-C-L
- Add together the remaining values after searching through both ranges and criteria.
- Set # of ACCS Cameras Used's value to final sum.
Hopefully I'm not over complicating this, but any advice would be helpful!
Comments
-
Hi Michael,
I was facing the same issue you have listed above. My workaround for this was to do a SUM function and then have each count if be the value. In your case it would look something like:
=SUM(COUNTIFS({Unit_Type}, "CP2 - Double", {ACCS Overall}, [T2]26), COUNTIFS({Unit_Type}, "CP4 - Double", {ACCS Overall}, [T2]26), COUNTIFS({Unit_Type}, "CP4-SP - Double", {ACCS Overall}, [T2]26), COUNTIFS({Unit_Type}, "KP1S - Double", {ACCS Overall}, [T2]26))
Hope this helps!
Jay
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
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!