Ad - leaderboard

Thursday, April 07, 2011

How to copy Word Tables into Excel spreadsheets

It doesn't take long to discover that copy and paste is useless since every paragraph or line feed in the table becomes a row in Excel.

To prevent this behaviour replace all the "paragraph marks" and "line breaks" with "$$$$"; copy and paste your table normally to Excel then  replace the $$$$ by the ALT+Enter line feeds.  Presto!

Here is how:
  1. In most versions of Word search and replace click More / Special / "paragraph mark".
  2. Click in the replace box and type $$$$.
  3. Click Replace All.
  4. Repeat to replace "manual line break" with $$$$.
  5. Select the table or cells and choose Copy (or CTRL+C).
  6. Switch to Excel.
  7. Click on the top left cell where the table will be pasted.
  8. Choose Paste (or CTRL+V)
    Warning: if you want your text to look like the rest of the Excel document, remove the formatting by using Paste Special / Unicode Text.
  9. Search and replace the $$$$ by CTRL+j *
  10. Admire your Excel document, the text is in the same location as it was in the original Word table.
Warning: if you use hyperlinks in your word text, make each is alone in a cell because because that is how Excel needs them.

Related background info: