#1   Report Post  
Ben
 
Posts: n/a
Default Text Formating

I have a spreadsheet where 1 column = firstname and initial. For
example Dave C.

How can I mask the cell to be just the first name?

Thanks

Ben

  #2   Report Post  
Dave O
 
Posts: n/a
Default Text Formating

Yes, using a formula like this
=MID(D7,1,FIND(" ",D7,1)-1)
where D7 contains the name in question. This formula returns
everything before the first blank space in the entry- which is great
until you run into Mary Ann X, who gets converted to Mary.

  #3   Report Post  
Ben
 
Posts: n/a
Default Text Formating

You da man, thank you

  #4   Report Post  
Ben
 
Posts: n/a
Default Text Formating

It works! But.....I get a #VALUE! if the name does not have a
firstname and initial, can you help?

  #5   Report Post  
Dave O
 
Posts: n/a
Default Text Formating

Sorry for the delayed response- try this:
=IF(ISNUMBER(FIND(" ",D7,1)),MID(D7,1,FIND(" ",D7,1)-1),D7)

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
Strange Formating problem with text and formula in same cell caliskier Excel Worksheet Functions 4 August 4th 05 01:49 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Formating text in cells Mark J. Worden Excel Discussion (Misc queries) 3 June 9th 05 10:21 PM
Conditional Formating when result is text Lary Excel Worksheet Functions 1 December 16th 04 02:13 AM
Formating a text string? METCO1 Excel Discussion (Misc queries) 2 November 30th 04 06:31 PM


All times are GMT +1. The time now is 09:19 PM.

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"