You didn't mention if there was *nothing else* in the cells except for the
p's & q's,
or if the p's and q's could occupy the same cell.
This counts *all* the p's and q's in Row1, no matter where they are:
=SUMPRODUCT(LEN(1:1)-LEN(SUBSTITUTE(UPPER(1:1),UPPER({"p";"q"}),"")))
--
HTH,
RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================
I WANT TO CALCULATE NUMBER OF "P" AND NUMBER OF "A" IN A ROW SO WHAT SHOULD
BE THE FORMULA FOR THE SAME?