View Single Post
  #2   Report Post  
PeterAtherton
 
Posts: n/a
Default



"ferde" wrote:

I'm not sure which function I need to add text "p" and "cps" when this
data is in different columns. The total in this ex: would be p+cps = 2.
Any help would be greatly appreciated. I'm new at this.

shift class
p cps
p x
p x
p x
p cps

total p+cps = 2


Assuming that shift is in column A and class is in column b

=IF(AND(A2="p",B2="cps"),COUNTA(A2:B2),"")

Regards
Peter