Basic question regarding multiple cell counts

Curioxity

New Member
Joined
Jun 16, 2011
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I was wondering if someone could help me with something which I'm sure is simple for the vast majority but I can't seem to get it right.

I'd like to return a count if certain values across multiple cells are met.

Basic outline:

column1 column2

False Failed stage 1
Pass
Pass
False Failed stage 2
False Failed stage 2

Ideally I'd like to return a count of anything in column1 that was false + Failed in stage 2 and likewise for stage 1 failures.

I've tried playing with dcount, sum functions etc. but I can't seem to get it working.

Thanks,

Kate
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
try countifs

=COUNTIFS(your_range_1,"False",your_range_2,"Failed in stage 2")

Range 1 should be your column 1 range
 
Upvote 0
Will False in column A always have a value of Failed in column B (and then Stage1 and Stage2 listed in column C)? If so, try:
Code:
=SUMPRODUCT(--($A$1:$A$5=FALSE),--($C$1:$C$5="Stage1"))
=SUMPRODUCT(--($A$1:$A$5=FALSE),--($C$1:$C$5="Stage2"))
 
Upvote 0
I believe COUNTIFS function is only available on Excel versions 2007 and higher...
 
Upvote 0
Hello,

Would anyone be able to follow-up on their previous solution with a mini one? I'd like to change the 2nd array to find partial matches as one of the categories is a CS failure but there's many variants of CS failures and I don't want to have to add each individual one i.e -

Pass
Fail CS:00387
Fail CS:00389

=SUMPRODUCT(--('Stage Process'!B2:B65536="FAIL"),--('Fail category'!C2:C65536="CS(How do I add the partial?))

This thing seems to be growing bigger and bigger as various departments add their own twists!

Thanks,

Kate
 
Upvote 0
Hello,

Would anyone be able to follow-up on their previous solution with a mini one? I'd like to change the 2nd array to find partial matches as one of the categories is a CS failure but there's many variants of CS failures and I don't want to have to add each individual one i.e -

Pass
Fail CS:00387
Fail CS:00389

=SUMPRODUCT(--('Stage Process'!B2:B65536="FAIL"),--('Fail category'!C2:C65536="CS(How do I add the partial?))

This thing seems to be growing bigger and bigger as various departments add their own twists!

Thanks,

Kate
Maybe something like this...

=SUMPRODUCT(--('Stage Process'!B2:B65536="FAIL"),--(LEFT('Fail category'!C2:C65536,2)="CS"))
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

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