Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have data in cell A1 that looks like this. I want to be able to
seperate it with the left right mid functions into B1,C1, D1, E1, F1, and get rid of the comma's. Any help would be greatly appreciated. 25632, 27865, 456456, 987456, 789456 thanks Glenn |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It would be easier to use Data | Text to Columns | delimited by a comma and
space. It wouldn't matter then how long the numeric strings were. It looks as though you have spaces in there too. Assuming there a B1 =MID(A1,1,5) C1 =MID(A1,8,5) D1 =MID(A1,15,6) E1 =MID(A1,23,6) F1 =MID(A1,31,6) If there are no spaces, adjust the start positions. You don't need to use LEFT and/or RIGHT Regards Trevor "QTGlennM" wrote in message oups.com... I have data in cell A1 that looks like this. I want to be able to seperate it with the left right mid functions into B1,C1, D1, E1, F1, and get rid of the comma's. Any help would be greatly appreciated. 25632, 27865, 456456, 987456, 789456 thanks Glenn |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
one way
Sub test() arr = Split(Trim(Range("a1")), ",") Range("b1:f1").Value = arr End Sub Gary "QTGlennM" wrote in message oups.com... I have data in cell A1 that looks like this. I want to be able to seperate it with the left right mid functions into B1,C1, D1, E1, F1, and get rid of the comma's. Any help would be greatly appreciated. 25632, 27865, 456456, 987456, 789456 thanks Glenn |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
LEFT function-all to left of a comma? | Excel Worksheet Functions | |||
when inserting new worksheets they read right to left not left to. | Setting up and Configuration of Excel | |||
How to make a cell appear in upper left (top left) corner of works | Excel Programming | |||
Column labels run right to left, not left to right | Excel Discussion (Misc queries) | |||
How to change the right-to-left worksheet to left-to-right workshe | Excel Discussion (Misc queries) |