Help with Word to Excel export

Copper Contributor

Hi,

 

Just to start off, I'm not really good with Excel so apologies if I'm asking for something that can be easily achieved, but I am working on a certain export which requires exporting data from Word and importing it into Excel, and I'm encountered some issues.

 

I've attached a picture of the word file. It has data written in two columns. There's 2 pages, and each page is basically a question. I would like these to appear in Excel so that each line is a column, and each question is a new row, and each new line into a new column?

 

This is the Word:

 

Knucklez_0-1634227651771.png

 

I save this as a text file so that it can be imported into Excel.

 

When I import this in Excel, everything is in one column:

Knucklez_1-1634227761472.png

 

The only way I can get this to work, is if I do the Word in this format where everything is together and each part is separated by an equal sign:

Knucklez_3-1634228640814.png

 

It then flows into Excel nicely:

Knucklez_2-1634228569667.png

 

As you can see though, that last Word isn't user friendly, and quite hard to read. Is there a way to keep the first Word format with columns, and export it to Excel where it can separate each question (page) into a new row?

 

EDIT

 

Thanks for you response @mathetes .

 

Just to explain a bit more what the goal is here. So I have a template in Excel that will needs some of the data from these columns, but not all. I'm looking for a solution where power query can be used to get this data into Excel, and then clean it up so it only leaves the relevant data in the right columns, so then it can go straight into the template. Unfortunately at the moment, if I export from Word to Excel the columns as they are (or a table, because originally it does actually come as a table), it moves everything into one column which doesn't separate the columns as they are in Word. 

 

Normally this is sensitive data, but I have edited to make it gibberish for the purpose of the forum. I have attached the Word document, and I have also attached the Excel with the template (the Item List is where the template is). Ultimately, I'm looking for a way to Excel to read each of the column (e.g. option A, option B) as a separate column, and then to see each page in the Word as a separate row. Like I've mentioned before, this seems to only work when I use the method shown in the screenshot, where all the text is in one block and separated by a delimiter. 

 

I realize this is a big confusing, so let me know if you need more information, and thanks for your help.

 

 

4 Replies

@Knucklez 

 

Word could have two columns in two different ways.

 

  1. One would be through formatting the whole page, each paragraph  (line ended with a "Return" key), as two columns but continuous (as a two column book might have it).
  2. The other would be as a table in Word, with two columns.

In the latter case, unless I'm mistaken, you could just copy the word Table into Excel and the two columns would be two columns in Excel.

 

It's not clear why you're exporting as text (csv file), given the ease with which data can go back and forth between Microsoft products in their native form. Was that part of the assignment?

 

Finally, unless there's proprietary data involved, it would help if instead of pictures you were to attach the actual word document, the actual excel spreadsheet.

 

keyword is text to table
@mathetes

Thanks for the reply, I have edited the post with more information.

@Knucklez 

 

I work on a Mac and don't have access to Power Query (sad to say; I'd love it)...frankly it's still not clear, however, what this is all about. So even if I did have PQ abilities, I'm not sure how I'd help.

 

I tried, just for the sake of trying, to use Copy and Paste Special, picking the option under Paste Special to "Transpose"--which would turn the entries in rows into entries in columns. It works, but because you don't have one Option A, for example, under the first question, the two lines take two columns, and so on across the Excel template. That might be a partial solution, but it wouldn't just take your Word column and change it into a row in Excel, not without some manual juggling on your part.

 

The bigger quandary, from my point of view: This really looks like a strange task to even involve Excel. Other than the fact that you've been given an Excel template to fill in, it's not something that really uses Excel for what Excel is good at. All it appears to be doing is taking advantage of cells, cells arrayed in rows and columns. But you know what? Word can do that too, and what you're working with happens to be, coincidentally, "words"! So why not use a word processor?

 

Fortunately for you, there are other experts here who not only have PQ, but are really good with it, so if there is a solution that fits your parameters, just be patient.