simple, counting the last character in text

J

JVANWORTH

I know it is simple, but I'm blanked out...........

How do I count the number of cells that have an "*" as the last character?
 
R

Rick Rothstein \(MVP - VB\)

I know it is simple, but I'm blanked out...........
How do I count the number of cells that have an "*" as the last character?

Try this...

=COUNTIF(A1:A6,"*~*")

Set your range accordingly.

Rick
 
T

T. Valko

Here's another way just in case you forget to define the * as a text
character by preceding it with the ~:

=SUMPRODUCT(--(RIGHT(A1:A10)="*"))
 
G

gwen

Thanks for that explanation of *~*

T. Valko said:
Here's another way just in case you forget to define the * as a text
character by preceding it with the ~:

=SUMPRODUCT(--(RIGHT(A1:A10)="*"))
 
Top