Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
trav2016
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

I want to split "05-09-10-17-24" into indivdual cell for example "05" "09"
"10" "17" "24" of courace with out the quatations

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

Menu DataText To Columns, with a delimiter of -

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"trav2016" wrote in message
...
I want to split "05-09-10-17-24" into indivdual cell for example "05"

"09"
"10" "17" "24" of courace with out the quatations



  #3   Report Post  
Posted to microsoft.public.excel.misc
bob777
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell


if cell A1 contains 45-34-77

then mid(A1,4,2) returns 34

if cell A1 contains "45-34-77"

then mid(A1,5,2) returns 34


--
bob777
------------------------------------------------------------------------
bob777's Profile: http://www.excelforum.com/member.php...o&userid=28504
View this thread: http://www.excelforum.com/showthread...hreadid=506319

  #4   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

Just do Data | Text-to-Columns, specifying the hyphen as the delimiter.

Alternatively, you can use a formula with MID in each of the five
columns, eg if data is in A1:

B1: =MID(A1,1,2)
C1: =MID(A1,4,2)
D1: =MID(A1,7,2)
E1: =MID(A1,10,2)
F1: =MID(A1,13,2)

Hope this helps.

Pete

  #5   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

Hi, select your data then go to Data/Text to Columns, make sure "Dilimited"
is selected above, hit NEXT, select "Other" and enter a dash into the box,
hit "Finish".

Make sure you have enough free columns on the right before doing this.

HTH
JG

"trav2016" wrote:

I want to split "05-09-10-17-24" into indivdual cell for example "05" "09"
"10" "17" "24" of courace with out the quatations



  #6   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

The following formulas assume that the value 05-09-10-17-24 is located in
Cell A1, and the formulas are placed in B1, C1, D1, E1 & F1:

Cell B1 Formula:
=LEFT(A1,2)

Cell C1 Formula:
=MID(A1,4,2)

Cell D1 Formula:
=MID(A1,7,2)

Cell E1 Formula:
=MID(A1,10,2)

Cell F1 Formula:
=RIGHT(A1,2)

--
Kevin Backmann


"trav2016" wrote:

I want to split "05-09-10-17-24" into indivdual cell for example "05" "09"
"10" "17" "24" of courace with out the quatations

  #7   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

On Mon, 30 Jan 2006 05:00:28 -0800, "trav2016"
wrote:

I want to split "05-09-10-17-24" into indivdual cell for example "05" "09"
"10" "17" "24" of courace with out the quatations


It's certainly simple to use the Data/Text to Columns wizard as others have
suggested.

But for a dynamic solution which can handle any length of number in your
string, you could use a regular expression formula.

Download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr/

Then, with your string in A1, enter this formula in B1 and copy/drag across as
far as required:

=REGEX.MID($A1,"\d+",COLUMNS($A:A))
--ron
  #8   Report Post  
Posted to microsoft.public.excel.misc
trav2016
 
Posts: n/a
Default split "05-09-10-17-24" into indivdual cell

Thanks, Pete it worked perfect.

"Pete" wrote:

Just do Data | Text-to-Columns, specifying the hyphen as the delimiter.

Alternatively, you can use a formula with MID in each of the five
columns, eg if data is in A1:

B1: =MID(A1,1,2)
C1: =MID(A1,4,2)
D1: =MID(A1,7,2)
E1: =MID(A1,10,2)
F1: =MID(A1,13,2)

Hope this helps.

Pete


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 unmerged cell contents be split to another cell Karyn Excel Worksheet Functions 1 January 12th 06 08:07 PM
How can I split one cell into two cell parts (upper & lower)? Desert Sparkle Excel Discussion (Misc queries) 0 January 5th 06 09:22 PM
Dates of a Day for a month & year cell formulas mikeburg Excel Discussion (Misc queries) 2 December 29th 05 10:14 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
how to split the unmerge cell in Excel? RR Excel Discussion (Misc queries) 3 July 29th 05 01:29 PM


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