Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Split a string


Hello all,

How can i break a string "Name Surname" that is in one cell to two
diffrent cells "Name" "Surname" ?
Is there a function i can use?

Thank you in advance!


--
dealwi8me
------------------------------------------------------------------------
dealwi8me's Profile: http://www.excelforum.com/member.php...o&userid=18854
View this thread: http://www.excelforum.com/showthread...hreadid=552563

  #3   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Split a string

"dealwi8me" wrote:
How can i break a string "Name Surname" that is in one cell to two
diffrent cells "Name" "Surname" ?
Is there a function i can use?


This might suffice ..

Assume data in A1 down

In B1:
=LEFT(TRIM(A1),SEARCH(" ",TRIM(A1))-1)

In C1:
=RIGHT(TRIM(A1),LEN(TRIM(A1))-SEARCH(" ",TRIM(A1)))

Select B1:C1, fill down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Split a string


these functions will do!

thank you so much for your help :)


--
dealwi8me
------------------------------------------------------------------------
dealwi8me's Profile: http://www.excelforum.com/member.php...o&userid=18854
View this thread: http://www.excelforum.com/showthread...hreadid=552563

  #5   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Split a string

"dealwi8me" wrote:
these functions will do!
thank you so much for your help :)


You are welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
Split text string using mid-search? DubboPete Excel Discussion (Misc queries) 3 January 28th 10 12:37 AM
split string based on a SET of words [email protected] Excel Discussion (Misc queries) 8 August 3rd 07 03:09 AM
Using Split Function on String with no spaces ExcelMonkey Excel Programming 7 February 9th 06 03:10 PM
how to split a string and return array xiang[_9_] Excel Programming 1 December 14th 05 11:48 AM
Solve operators within a string...split? crazybass2 Excel Programming 6 May 12th 05 08:19 PM


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