countif?

  • Thread starter Thread starter Paula
  • Start date Start date
P

Paula

I want to count data in column B if there is data in column A. If a
cell in a is blank then I don't want to count it.

7 s
4 s
3 s
s
2 s
2

3 s

I want to count the number of "s" I see in column b when there is a
number next to it in column a. The answer I look for is 5.

thank for help
 
Just in case there is a "dreaded space bar" or a letter in col A, try this
for NUMBERS only in col A.
=SUMPRODUCT(--(ISNUMBER($A$1:$A$1000)),--($B$1:$B$1000="s"))
 
Back
Top