Simple COUNTIF or Array Formula problem !

  • Thread starter Thread starter tdt
  • Start date Start date
T

tdt

I have two arrays. D6:D82 contains any one of the following values "A"
"B", "C", "S" or "AP". G6:G82 contains any one of the following value
"C", "N" or a number between 1 and 9.

I am attempting to simply count the number of rows that have the valu
"A" in the first column & the value "C" in the second column.

I have tried the following formulas, but neither seems to work?
{=COUNTIF(IF($D$6:$D$82="A",$G$6:$G$82),"C")}

and

=SUM(D6:D82="A")*SUM(G6:G82="C")

Can anyone help please
 
Hi tdt!

One way:

=SUMPRODUCT((D6:D82="A")*(G6:G82="C"))

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
tdt > said:
I have two arrays. D6:D82 contains any one of the following values "A",
"B", "C", "S" or "AP". G6:G82 contains any one of the following values
"C", "N" or a number between 1 and 9.

I am attempting to simply count the number of rows that have the value
"A" in the first column & the value "C" in the second column.

I have tried the following formulas, but neither seems to work?
{=COUNTIF(IF($D$6:$D$82="A",$G$6:$G$82),"C")}

and

=SUM(D6:D82="A")*SUM(G6:G82="C")

Can anyone help please ?


=SUMPRODUCT((D6:D82="A")*(G6:G82="C"))
 
Back
Top