Reputation: 1
I wanted to count the number of cells that contain the digits '451011' in excel. So i converted all the cells to text first and then used the formula - =COUNTIF(A2:A28,"*451011*")
, I had about 23-24 cells containing the same, but on evaluation the formula showed the answer as 2.
As you can see in the above picture, it shows the answer as 2. Please help.
Upvotes: 0
Views: 1516
Reputation: 748
Try this formula:
=SUMPRODUCT(--(NOT(ISERROR(FIND(451011,A2:A28)))))
It will work for text or values.
Upvotes: 2