Sum on conditions help

ChaosPup

New Member
Joined
Sep 27, 2021
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I'm struggling with a formula, hopefully someone can help.

I have 3 columns - QTY, TYPE and PASS/FAIL. TYPE is a dropdown with 3 options (SUBASSY, FINAL, INSPECTION). PASS/FAIL is a dropdown with 2 options (PASS, FAIL). QTY can be any whole number.

What I want to do is sum the QTY column for the rows where TYPE is SUBASSY and PASS/FAIL is FAIL.

I was initially using COUNTIFS but obviously this didn't count properly.

All help welcome.

Thanks!!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I was using
Excel Formula:
=COUNTIFS('2023 INSP AUDIT'!$F$4:$F$11,$O$4,'2023 INSP AUDIT'!$G$4:$G$11,$M$2)
, but it would only sum the amount of times FAIL appeared because I didn't know how to reference the QTY column that I want to sum.
 
Upvote 0
Ok, thanks for that, which col is the Qty in?
 
Upvote 0
Apologies, I should have indicated that. The QTY is in column D4 to D11 on sheet 2023 INSP AUDIT
 
Upvote 0
Ok, how about
Excel Formula:
=SUMIFS('2023 INSP AUDIT'!$D$4:$D$11,'2023 INSP AUDIT'!$F$4:$F$11,$O$4,'2023 INSP AUDIT'!$G$4:$G$11,$M$2)
 
Upvote 0
Ok, how about
Excel Formula:
=SUMIFS('2023 INSP AUDIT'!$D$4:$D$11,'2023 INSP AUDIT'!$F$4:$F$11,$O$4,'2023 INSP AUDIT'!$G$4:$G$11,$M$2)
That looks like it did the trick, thanks very much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,914
Members
449,054
Latest member
luca142

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top