Home » excel » excel – Cell couting formula

excel – Cell couting formula

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have a problem and I don’t know how to solve it. Let’s say in A1 I have “232” in A2 “321”.
I want to have a formula in A3 which counts how many cells has “2”(in the example should return 2)
Thank you very much.

How to&Answers:

use SUMPRODUCT

=SUMPRODUCT(--ISNUMBER(SEARCH(2,A1:A2)))

enter image description here