Using RIGHT to search for Capital M

R

Roger on Excel

I use the formula : =IF(RIGHT(A1,1)="M","Yes","No") to search for the last
letter M.

However, this formula does not differentiate between "m" and "M"

Is there a way to make it read true only for capital M??

Thankyou,

Roger
 
B

Barb Reinhardt

Try this

=IF(EXACT(RIGHT(A1,1),"M"),"Yes","No")

I've actually never used it myself, so I learned something tonight.
 

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