NEED HELP!!!

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

Guest

How to count a character only once?

Ex. Row 1 Collumm A has character "AV" on Row 1 Collumm B has same character
"AV". How do I sum/count only AV once at the end of Row 1. My range is about
6 collumms.
 
counting empty cells as a unique value:
=SUMPRODUCT(1/COUNTIF(A1:F1,A1:F1&""))

excluding empty cells:
=SUMPRODUCT((A1:F1<>"")/COUNTIF(A1:F1,A1:F1&""))
 
Hi Chicano,

Not sure of exactly what you want,maybe...

This in G1
=IF(COUNTIF(A1:F1,"AV")>=1,"AV","")
will return AV if AV exists in any of the cells
otherwise blank

This in G1
=IF(COUNTIF(A1:F1,"AV")>=1,1,"")
will return 1 if AV exists in any of the cells
otherwise blank

HTH
Martin
 
Back
Top