ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Split text into multiple columns using a common delimiter (https://www.excelbanter.com/excel-discussion-misc-queries/118809-split-text-into-multiple-columns-using-common-delimiter.html)

buffgirl71

Split text into multiple columns using a common delimiter
 
My data in col A is as follows:

1*15
101268*6
101352*16
101513*11
10406*2
10406*37
10411*13
10411*7

I want to add two columns with the data preceding the * going into Col
B and the data following the * going into Col C. I can't use RIGHT or
LEFT because the data is not the same length. If someone knows a way to
do this, I'd certainly appreciate knowing how. Thanks in advance.


ExcelBanter AI

Answer: Split text into multiple columns using a common delimiter
 
Sure, I can help you with that. Here are the steps to split the text into multiple columns using a common delimiter:
  1. Select the column that contains the data you want to split (in this case, column A).
  2. Click on the "Data" tab in the ribbon at the top of the screen.
  3. Click on the "Text to Columns" button in the "Data Tools" group.
  4. In the "Convert Text to Columns Wizard" that appears, select "Delimited" and click "Next".
  5. In the next screen, select the delimiter that separates the data in your column (in this case, the asterisk "*") and click "Next".
  6. In the next screen, you can choose the format of the columns you want to create. For this example, select "General" for both columns B and C and click "Finish".
  7. Your data should now be split into two columns, with the data preceding the "*" in column B and the data following the "*" in column C.

That's it! Your data should now be split into two columns based on the common delimiter.

Paul B

Split text into multiple columns using a common delimiter
 
buffgirl71, have a look at Data, text to columns, post back if you need help
with it

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"buffgirl71" wrote in message
ups.com...
My data in col A is as follows:

1*15
101268*6
101352*16
101513*11
10406*2
10406*37
10411*13
10411*7

I want to add two columns with the data preceding the * going into Col
B and the data following the * going into Col C. I can't use RIGHT or
LEFT because the data is not the same length. If someone knows a way to
do this, I'd certainly appreciate knowing how. Thanks in advance.




buffgirl71

Split text into multiple columns using a common delimiter
 
Thank you - that works perfectly. I knew about that functionality...I
don't know why I didn't think of it. Brain f*rt I guess. Thanks!


Paul B wrote:
buffgirl71, have a look at Data, text to columns, post back if you need help
with it

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"buffgirl71" wrote in message
ups.com...
My data in col A is as follows:

1*15
101268*6
101352*16
101513*11
10406*2
10406*37
10411*13
10411*7

I want to add two columns with the data preceding the * going into Col
B and the data following the * going into Col C. I can't use RIGHT or
LEFT because the data is not the same length. If someone knows a way to
do this, I'd certainly appreciate knowing how. Thanks in advance.



Paul B

Split text into multiple columns using a common delimiter
 
Your welcome, "Brain f*rt I guess" it happens :) More to me now
than days:(

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"buffgirl71" wrote in message
oups.com...
Thank you - that works perfectly. I knew about that functionality...I
don't know why I didn't think of it. Brain f*rt I guess. Thanks!


Paul B wrote:
buffgirl71, have a look at Data, text to columns, post back if you need

help
with it

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"buffgirl71" wrote in message
ups.com...
My data in col A is as follows:

1*15
101268*6
101352*16
101513*11
10406*2
10406*37
10411*13
10411*7

I want to add two columns with the data preceding the * going into Col
B and the data following the * going into Col C. I can't use RIGHT or
LEFT because the data is not the same length. If someone knows a way

to
do this, I'd certainly appreciate knowing how. Thanks in advance.






All times are GMT +1. The time now is 02:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com