![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Split Numbers in a single cell
I have a string of numbers in a cell and I want to split them into seperate
cells based on position. For example I need 080417007401181080 to be split into 3 cells as follows, 080417/00740/1181080. Is there a macro I can run that will automate this? Thank you Tim |
|
|||
|
Re: Split Numbers in a single cell
Hi there Tim,
Why not just use Text to Columns using Fixed Width? HTH -- Zack Barresse "Tim" <Tim@discussions.microsoft.com> wrote in message news:B8F38490-0D16-4130-AC51-D63D78D8F03C@microsoft.com... >I have a string of numbers in a cell and I want to split them into seperate > cells based on position. For example I need 080417007401181080 to be > split > into 3 cells as follows, 080417/00740/1181080. Is there a macro I can run > that will automate this? > > Thank you > Tim |
|
|||
|
Re: Split Numbers in a single cell
I don't know. That is pretty simple. That will work perfect.
Thanks. "Zack Barresse" wrote: > Hi there Tim, > > Why not just use Text to Columns using Fixed Width? > > HTH > > -- > Zack Barresse > > > > "Tim" <Tim@discussions.microsoft.com> wrote in message > news:B8F38490-0D16-4130-AC51-D63D78D8F03C@microsoft.com... > >I have a string of numbers in a cell and I want to split them into seperate > > cells based on position. For example I need 080417007401181080 to be > > split > > into 3 cells as follows, 080417/00740/1181080. Is there a macro I can run > > that will automate this? > > > > Thank you > > Tim > |
|
|||
|
Re: Split Numbers in a single cell
Just make sure you designate the columns as text or you will lose the leading
zeros. Gord Dibben MS Excel MVP On Tue, 29 Apr 2008 11:42:04 -0700, Tim <Tim@discussions.microsoft.com> wrote: >I don't know. That is pretty simple. That will work perfect. > >Thanks. > >"Zack Barresse" wrote: > >> Hi there Tim, >> >> Why not just use Text to Columns using Fixed Width? >> >> HTH >> >> -- >> Zack Barresse >> >> >> >> "Tim" <Tim@discussions.microsoft.com> wrote in message >> news:B8F38490-0D16-4130-AC51-D63D78D8F03C@microsoft.com... >> >I have a string of numbers in a cell and I want to split them into seperate >> > cells based on position. For example I need 080417007401181080 to be >> > split >> > into 3 cells as follows, 080417/00740/1181080. Is there a macro I can run >> > that will automate this? >> > >> > Thank you >> > Tim >> |
|
|||
|
Re: Split Numbers in a single cell
Hmm, kind of a toss up for me. If the numbers are required to be numbers
(depending on massaging the data) I would just reformat the columns afterwards with a 000000/00000/0000000 format. Of course, if the OP wants their numbers as text.. :) Take care Gord. -- Zack Barresse "Gord Dibben" <gorddibbATshawDOTca> wrote in message news:e32f14ti18oail4k83nh8g27aou1dhbmke@4ax.com... > Just make sure you designate the columns as text or you will lose the > leading > zeros. > > > Gord Dibben MS Excel MVP > > On Tue, 29 Apr 2008 11:42:04 -0700, Tim <Tim@discussions.microsoft.com> > wrote: > >>I don't know. That is pretty simple. That will work perfect. >> >>Thanks. >> >>"Zack Barresse" wrote: >> >>> Hi there Tim, >>> >>> Why not just use Text to Columns using Fixed Width? >>> >>> HTH >>> >>> -- >>> Zack Barresse >>> >>> >>> >>> "Tim" <Tim@discussions.microsoft.com> wrote in message >>> news:B8F38490-0D16-4130-AC51-D63D78D8F03C@microsoft.com... >>> >I have a string of numbers in a cell and I want to split them into >>> >seperate >>> > cells based on position. For example I need 080417007401181080 to be >>> > split >>> > into 3 cells as follows, 080417/00740/1181080. Is there a macro I can >>> > run >>> > that will automate this? >>> > >>> > Thank you >>> > Tim >>> > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|