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).
And here is how we do it:
In Word:
- Select your entire table in Word.
- Open the "Find and Replace" dialog (or Ctrl+H).
- In the "Find what" field, enter ^l (Shift+6 and the first letter of word lion).
- 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.
- You may select paragraph breaks by entering ^p (Shift+6 and the first letter of word parrot).
- In the "Replace with" field, enter ^v (Shift+6 and the first letter of word Venice).
- This is a shortcut for the paragraph symbol ¶. This is also known as a "pilcrow".
- Click "Replace All".
Now copy the table data from your Word file.
In Excel:
- Paste the copied table in Excel.
- With the data still selected, open "Find and Replace" (or Ctrl+H).
- 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).
- In the Replace field, enter the Alt code: Alt+0010 (this is for the line break). Nothing appears to change but it works.
- 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.