Forum Discussion

Liviu Muscalu live_outlook's avatar
Liviu Muscalu live_outlook
Copper Contributor
Jun 29, 2018

Countif function

In my opinion column A strings are different. "256" <> "0256" <> "00256" <> "000256".

COUNTIF formula gave other result.

 

Any advice is appreciated

 

 ABC
1Code TextCounterFormula
22564=COUNTIF(A$2:A$5,A2)
302564=COUNTIF(A$2:A$5,A3)
4002564=COUNTIF(A$2:A$5,A4)
50002564=COUNTIF(A$2:A$5,A5)

 

  • Hi Liviu,

     

    That's known issue, function converts text to numbers. Try

    =COUNTIF($A$2:$A$5,CHAR(173)&A2)

    I don't remember the source, it's already discussed here

     

Resources