If you missed our earlier article, the problem we're trying to solve is to get a list of data items that expand down into Excel. The example people mentioned to me were address directories. For example, how do you take an address list of 100 members and get them into Excel. Each entry was three lines such as the following:
34 Parson Dr.
Omaha, NE 68001
Prepping Your Word Document
Whenever we convert listings, we copy the data we need and paste it to a new document. The reason is twofold. First, if anything happens to our data, we still have the original. Secondly, you don't want extraneous text such as a description of the list or instructions on updating your entry.
Steps to convert using Tables,
1. Copy and paste text you need to convert to a new document
2. Highlight the text to convert
3. From Word's Table menu, select Convert | Text to Table
The Convert Text to Table dialog box appears.
4. In the number of columns: field, select the number of lines that make one record. If you have a blank line between records, add 1.
5. Keep the default entry for Separate text at Paragraphs.
6. Click OK.
Word will convert your text and present a table such as the one below.
7. To get your info into Excel, highlight the table columns you need and press Ctrl+C
8. Open a new worksheet in Excel.
9. In cell A1 press Ctrl+V and paste you data.
Tweaking the Excel Data
Although your data copied, you probably want to convert the last column into 3 columns. These would represent the city, state and zip code.
Sometimes all your cities are one word. Other times, you get cities with two or more words. In this case, you want to first break this column apart after the comma that separates state from zip code.
1. Click the column you wish to parse such as C
2. From the Data menu, select Text to Columns. This will start the Convert Text to Columns Wizard.
3. On Step 2 of the wizard, select the Comma checkbox for your Delimiter. Excel will refresh and you can see how the column will break in the Data Preview section.
4. Click Finish.
Once you've split these columns you may notice your new Column D starts with an extra space. This is OK as we'll do one more Text to Columns conversion, but use a Space as a delimiter instead of the comma. This will result in three columns. The first column will be blank as it represents that leading space before the city name. You can delete this blank column.
5. The last step is to insert a row at the top and place in your column headings.
Between these two methods, you should be able to convert most text listings in Word. There may be some adaptations you need to make. For example, you may have entries that have an extra line showing an Apartment number or Suite. Depending on the quantity of these irregular entries, you may want to copy them off a separate document and handle after your main conversion. Or, you may want to add the apartment info the end of line 2. It's your list so you get to define the rules. We just don't want you doing a copy and paste of each line into Excel.
Last Updated (Friday, 18 June 2010 18:22)