#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default If Formula

My cell contains the text: UWWHHM9908BEN

In a blank cell how do I ask Excel to pull only the M in my blank cell.
I want to say "if character 6 is M, then put M in my cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default If Formula

Maybe this

=IF(MID(A5,6,1)="m","M","")

Mike

"Felicia Pickett" wrote:

My cell contains the text: UWWHHM9908BEN

In a blank cell how do I ask Excel to pull only the M in my blank cell.
I want to say "if character 6 is M, then put M in my cell.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default If Formula

Thank you!

"Mike H" wrote:

Maybe this

=IF(MID(A5,6,1)="m","M","")

Mike

"Felicia Pickett" wrote:

My cell contains the text: UWWHHM9908BEN

In a blank cell how do I ask Excel to pull only the M in my blank cell.
I want to say "if character 6 is M, then put M in my cell.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default If Formula

"Felicia Pickett" wrote:
My cell contains the text: UWWHHM9908BEN
In a blank cell how do I ask Excel to pull only the M in my blank cell.
I want to say "if character 6 is M, then put M in my cell.


Otherwise what?!

=if(mid(A1,6,1)="M","M","")

That leaves a null string (which display as blank) if the 6th character is
not "M".

Caveat: This matches "m" as well as "M". Do you care?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default If Formula

No I just want the letter that shows up in the 6th spot.

"JoeU2004" wrote:

"Felicia Pickett" wrote:
My cell contains the text: UWWHHM9908BEN
In a blank cell how do I ask Excel to pull only the M in my blank cell.
I want to say "if character 6 is M, then put M in my cell.


Otherwise what?!

=if(mid(A1,6,1)="M","M","")

That leaves a null string (which display as blank) if the 6th character is
not "M".

Caveat: This matches "m" as well as "M". Do you care?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If Formula

In that case, use
=MID(A1,6,1)
--
David Biddulph

Felicia Pickett wrote:
No I just want the letter that shows up in the 6th spot.

"JoeU2004" wrote:

"Felicia Pickett" wrote:
My cell contains the text: UWWHHM9908BEN
In a blank cell how do I ask Excel to pull only the M in my blank
cell. I want to say "if character 6 is M, then put M in my cell.


Otherwise what?!

=if(mid(A1,6,1)="M","M","")

That leaves a null string (which display as blank) if the 6th
character is not "M".

Caveat: This matches "m" as well as "M". Do you care?



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



All times are GMT +1. The time now is 12:58 PM.

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

About Us

"It's about Microsoft Excel"