• If you would like to post, please check out the MrExcel Message Board FAQ and register here. If you forgot your password, you can reset your password.
  • Excel articles and downloadable files provided in the articles have not been reviewed by MrExcel Publishing. Please apply the provided methods / codes and open the files at your own risk. If you have any questions regarding an article, please use the Article Discussion section.
MrExcel

Splitting a CSV file into 205 individual one-character columns

I was doing a seminar recently and an auditor had a need to split an ACH file into 205 columns, with each column being one character wide.

Her current process: Use Data, Text to Columns, Fixed Width, and then click 204 times in the Data Preview Window of Step 2 of the Wizard.

One idea from Wayne Edmonson: In cell B2 enter: =MID($A2,COLUMNS($B2:B2),1) and copy right 205 columns and down to the bottom of the data.

Another solution is to use Power Query. Select the column. Home, Split Column, By Number of Characters. Type 1 as the number of characters. Power Query defaults to Repeatedly.
1574520667504.png

This ended up being dramatically faster than using the Text to Columns wizard.

Video here:
Author
MrExcel
Views
1,792
First release
Last update
Rating
0.00 star(s) 0 ratings

More Excel articles from MrExcel

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