Text to Columns as Formula

slam

Well-known Member
Joined
Sep 16, 2002
Messages
919
Office Version
  1. 365
  2. 2019
I have a column with cells that look like this:

95.68#88
63.71#999
99.84#144

Is it possible to replicate text to columns, but as a formula? Using the # as the delimiter, then having the two values split into two columns?

Essentially, I just want to paste the data, then have a formula automatically split the numbers into two columns.

Thanks!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Fluff.xlsm
ABC
1
295.68#8895.6888
363.71#99963.71999
499.84#14499.84144
Sheet6
Cell Formulas
RangeFormula
B2:C4B2=--TEXTSPLIT(A2,"#")
Dynamic array formulas.
 
Upvote 0
There are 2.
Before Delimiter
Excel Formula:
=NUMBERVALUE(TEXTBEFORE($A2,"#"))

After Delimiter
Excel Formula:
=NUMBERVALUE(TEXTAFTER($A2,"#"))

1732133482066.png
 
Upvote 0
Just amazing how many different ways there are to do things in Excel!

I had some cells that only contained a dash in this range, and I needed to add an error condition in for that, which I got working with the solution from Sergius, so my two formulas are:

Excel Formula:
=IFERROR(MID(I2,1,SEARCH("#",I2)-1),"-")

Excel Formula:
=IFERROR(MID(I2,SEARCH("#",I2)+1,100),"-")

Big thank you to you all!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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