• If you would like to post, please check out the MrExcel Message Board FAQ and click here to register.
    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
294
First release
Last update
Rating
0.00 star(s) 0 ratings

More Excel articles from MrExcel

Some videos you may like

This Week's Hot Topics

Top