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
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!