Attleborough
Registered user
I need a formula that will count the number of rows where two fixed criteria are located - not one or the other. Ideally needs to ignore blanks.
So if column A has colours and column B has numbers - I'd like to know the number of rows where Blue & 4 both feature - not blue on its own or 4 on its own.
I've put a few rows of data in a sheet and tried a couple of formula without success -
=SUM(($A$7:$A$14="blue")*($B$7:$B$14="4"))
& also
=SUMPRODUCT(--(A7:A14="blue")*(B7:B14="4"))
I'm using Excel 2003
Can anyone help, please?
A.
So if column A has colours and column B has numbers - I'd like to know the number of rows where Blue & 4 both feature - not blue on its own or 4 on its own.
I've put a few rows of data in a sheet and tried a couple of formula without success -
=SUM(($A$7:$A$14="blue")*($B$7:$B$14="4"))
& also
=SUMPRODUCT(--(A7:A14="blue")*(B7:B14="4"))
I'm using Excel 2003
Can anyone help, please?
A.

15=F5))