LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Ben
 
Posts: n/a
Default Text Formatting 2

I have a spreadsheet with 2 versions of text in 1 columm

1. 1 column = firstname and initial. For example Dave C.
2. 1 column = firstname. For example Dave

DaveO kindly provided this suggestion:

=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

This works perfectly for situation number 1, but in situation 2 I get a
#VALUE! error.

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

Thanks

Ben

 
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
How do I stop Excel auto formatting the text 3-4 as 04 Apr? ahughf Excel Discussion (Misc queries) 3 October 16th 05 10:58 AM
grayscale conditional formatting of text Guenther Excel Discussion (Misc queries) 1 October 5th 05 01:16 PM
Filtering out text with conditional formatting bluebean Excel Discussion (Misc queries) 4 August 5th 05 04:43 PM
Formatting text to match Red/Amber/Green reports keith Excel Worksheet Functions 0 February 7th 05 11:06 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 08:46 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"