View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Barb Reinhardt Barb Reinhardt is offline
external usenet poster
 
Posts: 3,355
Default Using RIGHT to search for Capital M

Try this

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

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

Barb Reinhardt



"Roger on Excel" wrote:

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