Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bridgjr
 
Posts: n/a
Default Word select from a string


I wish to select a particular word from a string but cannot see a
formula to do it. At the moment I am only interested in the first word
so coded

A1="FRED BLOGGS"

=LEFT(A1,FIND(" ",A1)-1)

which works fine as long as there is a " " in the string.

However this is not always the case so the FIND function returns
#VALUE! and messes up the the formatting.

I'm sure there is an easier way of doing this so any help would be
appreciated.

Many thanks.


--
bridgjr
------------------------------------------------------------------------
bridgjr's Profile: http://www.excelforum.com/member.php...o&userid=25908
View this thread: http://www.excelforum.com/showthread...hreadid=392844

  #2   Report Post  
mangesh_yadav
 
Posts: n/a
Default


Can you give an example.

Or is this what you want.
=IF(ISERR(FIND(" ",A1)),A1,LEFT(A1,FIND(" ",A1)-1))

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=392844

  #3   Report Post  
bridgjr
 
Posts: n/a
Default


Thanks Mangesh, that does what I want.


--
bridgjr
------------------------------------------------------------------------
bridgjr's Profile: http://www.excelforum.com/member.php...o&userid=25908
View this thread: http://www.excelforum.com/showthread...hreadid=392844

  #4   Report Post  
mangesh_yadav
 
Posts: n/a
Default


Well thats good.
Thanks for the feedback.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=392844

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
auto word select jimmy Excel Discussion (Misc queries) 0 April 25th 05 11:07 AM
Can Excel Export Data to Word Format? Reddiance Excel Discussion (Misc queries) 2 April 18th 05 06:03 PM
Entering Excel information into MS Word dwalsh77 Excel Discussion (Misc queries) 0 April 8th 05 05:29 PM
Embedded word doc changed to image-need to change back to word. cflores Excel Discussion (Misc queries) 0 January 23rd 05 06:45 AM
Hyperlink to word document problem JS Links and Linking in Excel 0 December 8th 04 10:54 PM


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