Sunday, March 26, 2023

How to copy Word table into Excel without splitting cells into multiple rows?

Honestly we work a lot on Word, Excel and PowerPoint, to an extent that we never thought while we were in school or university that this is what we would end up doing ultimately.

This makes it immensely important that we know some nifty tricks to quickly work our way out, on to the next job. This has been a long pending work for me and this time I had to look for a solution (because the data size was huge and i couldn't do it one by one).

Microsoft Office - Word, Excel

And here is how we do it:


In Word:

  1. Select your entire table in Word.
  2. Open the "Find and Replace" dialog (or Ctrl+H).
  3. In the "Find what" field, enter ^l (Shift+6 and the first letter of word lion).
  4. Now when you click on Find, it will search for all the line breaks. If there are no line breaks then look for paragraph breaks.
  5. You may select paragraph breaks by entering ^p (Shift+6 and the first letter of word parrot).
  6. In the "Replace with" field, enter ^v (Shift+6 and the first letter of word Venice).
  7. This is a shortcut for the paragraph symbol ¶. This is also known as a "pilcrow".
  8. Click "Replace All".

Now copy the table data from your Word file.


In Excel:

  1. Paste the copied table in Excel.
  2. With the data still selected, open "Find and Replace" (or Ctrl+H).
  3. In the "Find what" field, enter the following Alt code: Alt+0182. This is the Alt code for the pilcrow symbol. To enter an Alt code, ensure the numeric keypad is available (i.e., Num Lock on).
  4. In the Replace field, enter the Alt code: Alt+0010 (this is for the line break). Nothing appears to change but it works.
  5. Click "Replace All".
And that's it. All the rows copied as is without splitting of content into multiple rows.

Hope this helps! Until next time.