SUMIFS & COUNTIFS with 2 Criteria
I'm trying to work on COUNTIFS first. It seems if I can crack one the other is pretty close.
The riddle:
=COUNTIF({Post Repair Count}, ({Domestic/Asian}, "Domestic"))
I've tried COUNTIFS with the 2nd range but seems that the criteria for range 1 is tripping me up.
{Post Repair Count} has no criteria to it. Just need to count it if criteria in range 2 are met @ROW from source sheet. This will be very similar to the SUMIFS that will follow.
Hope I am making sense. Thank you in advance
Answers
-
If there is no criteria to a range, then really you have no need to count it. What you are really counting is the number of "Domestic" cells.
=COUNTIFS({Domestic/Asian"}, @cell = "Domestic")
To sum a number column based on the above range/criteria set, it would look something like this:
=SUMIFS({Range to sum}, {Domestic/Asian"}, @cell = "Domestic")
-
Paul, thank you for reaching out.
In this case there is a reason for counting {Post Repair Count} because I need to know how many invoices are within that range that are "Domestic"
Does that make sense?
Thank you sir
Jeremy
-
Are there any rows that will have "Domestic" but will be blank in the Post Repair Count column?
-
Yes sir. In fact, the {Post Repair Count} is referencing multiple columns from my master sheet. Some of the referenced cells have figures and others don't.
Thank you for looking at this.
-
How many columns does the {Domestic/Asian} range cover?
-
{Domestic/Asian} is one column. The {Post Repair Count} References 4 columns.
My goal is to count the cells that have numbers present in {Post Repair Count}, the criteria to count would be {Domestic/Asian} = Domestic @ROW.
However, I think I have found a work around! I can accomplish this in a report then use it on a dashboard.😎
-
Yes. Reports may be an easier option. One of the problems with working this through formulas is that your ranges have to match in size and shape. One range referencing 4 columns and another range referencing a single column (both within the same function) will throw an error. You would have to write out 4 separate COUNTIFS (one for each of the post repair count columns) and then add them all together.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 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!