I have a column of characters (that look like numbers but are really text), such as:
13-09-07-01
13-09-99-99
13-06-07-01
13-07-07-01
16-09-07-01
16-09-99-99
19-12-07-01
19-12-99-99
19-02-07-04
19-02-99-99
19-05-07-01
I need to count the number of rows whose value ends in “99-99”. I just cannot get it to work. What am I doing wrong?
=COUNTIF(B2:B316;RIGHT(5)=“99-99”) returns 0
=COUNTIF(RIGHT(B2:B316;6)="-99-99") returns Err:511
=COUNTIF(B2:B316;RIGHT(5)"=99-99") returns Err:509
=COUNTIF(B2:B316;“RIGHT(6)=-99-99”) returns 0
=SUMPRODUCT(B2:B316="-99-99") returns 0
I’ve tried moving the quotes around so many times that my eyes are crossing. I give up. I’d appreciate any help, thanks!