Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can unmerged cell contents be split to another cell | Excel Worksheet Functions | |||
How can I split one cell into two cell parts (upper & lower)? | Excel Discussion (Misc queries) | |||
Dates of a Day for a month & year cell formulas | Excel Discussion (Misc queries) | |||
Instead of a negative number, I'd like to show zero... | Excel Worksheet Functions | |||
how to split the unmerge cell in Excel? | Excel Discussion (Misc queries) |