Using RIGHT to search for Capital M

  • Thread starter Thread starter Roger on Excel
  • Start date Start date
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
 
Try this

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

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