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

you could try this

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

--


Gary Keramidas
Excel 2003


"Roger on Excel" wrote in message
...
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