Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Using RIGHT to search for Capital M

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
search for words with capital letter at end Roger on Excel Excel Discussion (Misc queries) 7 July 22nd 08 07:19 PM
search for capital letter at end of text string Roger on Excel Excel Programming 5 July 22nd 08 04:42 AM
Capital Roger Excel Worksheet Functions 5 May 12th 06 06:47 PM
search a string and strip out ONLY the capital letters aph Excel Programming 3 September 27th 05 11:35 AM
Capital Letters Gaute Excel Worksheet Functions 4 March 9th 05 09:55 AM


All times are GMT +1. The time now is 11:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"