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
- 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!