Need Countif to work like Sumif

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the formula =Sumif(B7:B203,"Paul
G",(COUNTIF(C7:C203,"*"))) to count the number of cells in the "C" column
which contains text and are in the same row next to my name in the "B"
column. This formula does not work. Ay suggestions?

Thank you, paul
 
=SUMPRODUCT(--(B7:B203="Paul"),--(ISTEXT(C7:C203)))

note that if you have formulas in C that can return a "" (blank looking
cell) they will be included, then you can use

=SUMPRODUCT(--(B7:B203="Paul"),--(ISTEXT(C7:C203)),--(LEN(C7:C203)>0))

and of course if you only want to test for non empty cells in C

=SUMPRODUCT(--(B7:B203="Paul"),--(C7:C203<>""))

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon
 
Either:

=SUMPRODUCT(--($B$7:$B$203="Paul G"),--ISTEXT($C$7:$C$203))

Or:

=SUM(IF($B$7:$B$203="Paul G",ISTEXT($C$7:$C$203)+0))

which needs to be confirmed with control+shift+enter, not just with enter.
 
hi!

something like

=SUMPRODUCT(--(B7:B203="PAUL"),--(C7:C203="*text you wanted*"))

-via135
 
Hi Paul,

Try these:

=SUMPRODUCT(--(B7:B203="Paul G"),--(C7:C203<>""))
=SUMPRODUCT((B7:B203="Paul G")*(C7:C203<>""))

or if apart from non-empty the value in column [C] must be text...

=SUMPRODUCT(--(B7:B203="Paul G"),--ISTEXT(C7:C203))
=SUMPRODUCT((B7:B203="Paul G")*ISTEXT(C7:C203))

Regards,
KL
 
Back
Top