Summing a column dependent on text and value
Hello,
I am looking for a formula to sum a column but only count those cells that meet certain criteria. Please see the example below.
The formula should be in the highlighted cell. It should count all the cells in the "Repair Category" column that are "4" AND are FSA AND Warranty in "Request Type". It should exclude cells that are 4 in "Repair Category" and Trans in "Request Type".
Hopefully that makes sense!
Best Answer
-
Try this then...
=COUNTIFS([Repair Category]:[Repair Category], CONTAINS("4", @cell), [Request Type]:[Request Type], OR(@cell = "FSA", @cell = "Warranty"))
Answers
-
Are you looking for a count of rows or to sum the repair category based on the criteria?
-
Hi Paul,
I am looking for a count of rows.
How many rows have Category 4, and are listed as either FSA or Warr?
-
Try this then...
=COUNTIFS([Repair Category]:[Repair Category], CONTAINS("4", @cell), [Request Type]:[Request Type], OR(@cell = "FSA", @cell = "Warranty"))
-
That worked! Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.9K Get Help
- 441 Global Discussions
- 153 Industry Talk
- 501 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 79 Community Job Board
- 511 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!