Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default truncate text to first word

I have a column with first names, some of which are concatenated with middle
initials or middle names. Is there a way to truncate to just the first names?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default truncate text to first word

As long as there's a space between the first name and the rest:

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

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Harry C" wrote in message
...
I have a column with first names, some of which are concatenated with middle
initials or middle names. Is there a way to truncate to just the first
names?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default truncate text to first word

Hi Harry,

If they are not formulas you can use the Data, Text to Columns command and
choose Delimited, click next choose Space, click Next, and in the Preview
pane select each one of the "extra" columns and choose do not import skip.

If they are formulas then

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

--
Cheers,
Shane Devenshire


"Harry C" wrote:

I have a column with first names, some of which are concatenated with middle
initials or middle names. Is there a way to truncate to just the first names?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default truncate text to first word

Since the cells with only first names had no following spaces, I had to
concatenate with " ", and then it worked great! Thanks!

Harry
"ShaneDevenshire" wrote:

Hi Harry,

If they are not formulas you can use the Data, Text to Columns command and
choose Delimited, click next choose Space, click Next, and in the Preview
pane select each one of the "extra" columns and choose do not import skip.

If they are formulas then

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

--
Cheers,
Shane Devenshire


"Harry C" wrote:

I have a column with first names, some of which are concatenated with middle
initials or middle names. Is there a way to truncate to just the first names?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default truncate text to first word

Hi Harry,

If the post is helpful you can click the Yes buttons to the right of the
question that marks the question appropriately.
--
Thanks,
Shane Devenshire


"Harry C" wrote:

Since the cells with only first names had no following spaces, I had to
concatenate with " ", and then it worked great! Thanks!

Harry
"ShaneDevenshire" wrote:

Hi Harry,

If they are not formulas you can use the Data, Text to Columns command and
choose Delimited, click next choose Space, click Next, and in the Preview
pane select each one of the "extra" columns and choose do not import skip.

If they are formulas then

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

--
Cheers,
Shane Devenshire


"Harry C" wrote:

I have a column with first names, some of which are concatenated with middle
initials or middle names. Is there a way to truncate to just the first names?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 169
Default truncate text to first word

In article , ?B?U2hhbmVEZXZlbnNoaXJl?= wrote:
Hi Harry,

If the post is helpful you can click the Yes buttons to the right of the
question that marks the question appropriately.


?
There are no buttons in news groups. Is this group mirrored in whole or in
part by some kind of web forum ? Might explain the large number of strange
"froms" (starting with ?Utf-8?B? ...).

Thanks




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
How do I truncate a text field in Excel? Baxter Excel Worksheet Functions 3 September 27th 07 12:23 AM
How do you truncate 2.22 to just 0.22? Crackles McFarly Excel Worksheet Functions 6 September 5th 07 01:14 AM
How do I truncate or hide portions of text in a pivot table? Sean McCloskey Excel Worksheet Functions 1 July 26th 06 01:02 AM
how do i truncate text-- create cell with only 125 charecters zahara Excel Worksheet Functions 2 July 5th 06 08:23 PM
How do you truncate a text string? dailygluttony Excel Worksheet Functions 2 March 28th 06 08:08 PM


All times are GMT +1. The time now is 04:19 AM.

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"