Need formula to perform text to column function

wdeontray

New Member
Joined
Oct 10, 2018
Messages
1
Hi,

I need a formula to perform the same actions as text to column. I need the phrase ONE_TWO_THREE to be split into 3 columns such as ONE | TWO | THREE. I am assuming I will need a function for each column. Any help will be GREATLY appreciated.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the Board!

Here is one way, for an entry in cell A1:

First word: =LEFT(A1,FIND("_",A1)-1)
Second word: =TRIM(MID(SUBSTITUTE(A1,"_",REPT(" ",255)),255,255))
Third word: =TRIM(RIGHT(SUBSTITUTE(A1,"_",REPT(" ",255)),255))
 
Upvote 0
Hi,

Here's another way (single formula), formula copied across as far as needed:


Book1
ABCDE
1ONE_TWO_THREEONETWOTHREE
2ONE_TWO_THREE_FOURONETWOTHREEFOUR
Sheet317
Cell Formulas
RangeFormula
B1=TRIM(MID(SUBSTITUTE("_"&$A1,"_",REPT(" ",255)),COLUMNS($B1:B1)*255,255))
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top