Convert text to columns using a formula in Sheets

nupema

New Member
Joined
Oct 21, 2010
Messages
14
Hello,

I'm trying to use Convert Text to Columns function, but in a formula format, rather than using the option in the bar. The reason is that I want just to paste the raw data from the .csv file and have the data automatically converted from text into separated columns. And I can't use VBA or anything like that.

I'm using Google sheets, so I've tried to use a simple formula on B1 like this: =split(A1,",",false,TRUE) and on B2 like this: =split(A1,",",false,false), and kind of works but its also bringing the associated quotation marks, which I can't have.

Example of content on cell A2: XPTO AB.,"2021-01-17","0","0","","","1.00","0","0","0","0","0","3"

And the split formula returns B1: XPTO AB C2: "2021-01-17" D2: "0" / and so on...so on...

I've also tried with Trim and other commands that I've found on other similar posts, but I don't get it working properly.
confused.gif


If formula Masters can give me help here, I would be much appreciated.
smile.gif


The request was also posted here.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about
Excel Formula:
=SPLIT(substitute(A2,"""",""),",",1,0)
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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