Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Coping part of a cell content into a seperate cell

Hi
I have two cells, one containing first and middle name and another one with
surname. I want to combine the first name and surname into a separate cell,
can you advise how I can just copy the first name and miss out the middle
name please??

Thanks

Caz

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Coping part of a cell content into a seperate cell

Hi,
I assume that the midle name is separated by a space from the first name and
is in column A and the last name in column B

=TRIM(LEFT(A2,FIND(" ",a2)-1))&" "&B2

"Caz H" wrote:

Hi
I have two cells, one containing first and middle name and another one with
surname. I want to combine the first name and surname into a separate cell,
can you advise how I can just copy the first name and miss out the middle
name please??

Thanks

Caz

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Coping part of a cell content into a seperate cell

Hi Caz, I assume not everyone will have a middle name, try something like:

=IF(ISERROR(FIND(" ",A1)),A1,LEFT(A1,FIND(" ",A1)-1))&" "&B1

Where the forename is in cell A1 and the surname is in cell A2.

Hth

Stu



"Caz H" wrote:

Hi
I have two cells, one containing first and middle name and another one with
surname. I want to combine the first name and surname into a separate cell,
can you advise how I can just copy the first name and miss out the middle
name please??

Thanks

Caz

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Coping part of a cell content into a seperate cell

...........That should read - the surname is in cell B1!



"stumac" wrote:

Hi Caz, I assume not everyone will have a middle name, try something like:

=IF(ISERROR(FIND(" ",A1)),A1,LEFT(A1,FIND(" ",A1)-1))&" "&B1

Where the forename is in cell A1 and the surname is in cell A2.

Hth

Stu



"Caz H" wrote:

Hi
I have two cells, one containing first and middle name and another one with
surname. I want to combine the first name and surname into a separate cell,
can you advise how I can just copy the first name and miss out the middle
name please??

Thanks

Caz

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
Can I use the content of a cell as part of filereference in other Excelhobbyist Excel Worksheet Functions 5 December 30th 08 02:44 PM
display part of the cell content linda Excel Discussion (Misc queries) 4 August 28th 07 03:02 AM
Using macro to copy a part of a cell content to next cell Charles Excel Discussion (Misc queries) 6 May 31st 06 05:57 AM
Can I search a cell for a value and extract part of content? Leben Excel Discussion (Misc queries) 1 December 16th 05 09:43 AM
vlookup to extract part cell content excelFan Excel Discussion (Misc queries) 2 December 5th 04 08:45 AM


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

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"