How can I automatically organize data from a text file in a spreadsheet?

user2738229

I have a text file like this:

raw data

and I would like to organize into Excel like this:

excel data

I could do this by hand manually for two data entries, but I would like to be able to automate this for a larger scale. What I've tried so far is to input the data into Excel using its built-in feature, but that's where I'm stuck. I tried to transpose the columns into rows, but that doesn't neatly organize it like I want it. Do I need to do some coding or is there a built-in function? If I do need coding, could someone point me in the right direction?

Thanks for your time!

Mike Honey

I would try the Power Query Add-In for this. It has powerful commands for manipulating data. There are functions underneath, but you can achieve a lot by just clicking the buttons in the Power Query window. Working visually in Power Query is usually much easier than coding in VBA.

I had a go at this particular challenge and got it working. You can download and use my demo file from my OneDrive:

http://1drv.ms/1AzPAZp

It's the file: Power Query demo - reorganising rows into columns.xlsx

As described on the ReadMe sheet, I only had to write one simple function - the rest was just clicking around the UI. Power Query is great!

To use it against your own text files, just Edit the first Step in the Query to point to your file. BTW you can even get Power Query to loop over the files in a folder if required.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I make Excel fetch data from a database automatically when I open the spreadsheet?

How can I organize this location data (json output) in a text file using PowerShell?

How can I extract a particular worksheet in an xlsx spreadsheet as a text file?

How can I organize JSON data from pandas dataframe

How can I display text from a file automatically after powering up my computer, in text editor or terminal?

How can I append data from one spreadsheet to another one?

How can I read the data from text file and load it into the vector?

How can I extract data from text file?

How can I replace text from a config.json file automatically by a variable in node js

How do I automatically take data from a Google form and generate a new spreadsheet from each response then have it automatically format it?

How can I re-organize cells containing partial text from different cell into one Colum?

How can I print Excel spreadsheet files automatically?

How can I keep excel from automatically changing the text color

How to stop google spreadsheet from splitting data automatically?

How can I used XSLT to add alt text to an image file using a spreadsheet?

How would I extract & organize data from a txt file using python?

how can i plot these data from the text?

How can I organize my CSV file in R

How can I organize my data into a new table

How do I write data from a google spreadsheet into a time input field in a templated html file

how can i input a text from a text file (c)

How can I paste data from one spreadsheet to the last column of another?

How can I organize a dictionary in crescent form from another dictionary

How can I organize this array

How can I clip text in in cell in spreadsheet with google apps script?

How can I automatically clear the text in EditText?

Automatically updating google spreadsheet with data from bigquery

how to pull strings from a text file into a spreadsheet as labeled variables

How can I scrape this table properly or order this data properly so that it's not a bunch of mumbo jumbo and organize it in a csv file?