Conditional format to determine if last character in a cell is anumber or a letter

T

Tonso

I have a spreadsheet where I enter weights. The weights can be any
whole number 1-99999. I would like to be able to flag suspicious
weights using conditional formatting by putting a letter as the last
character, such as 123a, or 57b, 4471c, etc.What conditional
formatting formula can I use to accomplish this?

Thanks,

Tonso
 
P

Pete_UK

Assuming your weights are in column A, starting with A2, highlight the
cells in that column with A2 as the active cell, and use this formula
in the CF dialogue box:

=AND(CODE(UPPER(RIGHT(A2)))>=65,CODE(UPPER(RIGHT(A2)))<=90)

Then click on the Format button and set the format for the cell. When
you OK your way out, XL will apply the conditions to all the
highlighted cells.

Hope this helps.

Pete
 
T

Tonso

Assuming your weights are in column A, starting with A2, highlight the
cells in that column with A2 as the active cell, and use this formula
in the CF dialogue box:

=AND(CODE(UPPER(RIGHT(A2)))>=65,CODE(UPPER(RIGHT(A2)))<=90)

Then click on the Format button and set the format for the cell. When
you OK your way out, XL will apply the conditions to all the
highlighted cells.

Hope this helps.

Pete



- Show quoted text -

Works perfect Pete!! Thank so very much!

Tonso
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top