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!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.2K Get Help
- 386 Global Discussions
- 212 Industry Talk
- 445 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 292 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!