I have a dilemma I am hoping someone might be able to help me with! I have exported a PDF file into excel that has a lot of information that populates into one cell. I need to split this information into separate cells, but all the information has different spacing. Here is an example:
John Smith 1234 Main St
Charlie Motto 6548 Teflon Ave
Shannon Guesswho 12W546 Spoon DrSo, I need to put the names in one cell and the addresses (Preferably numeric and street separate).
Is there any way to do this?
22 Answers
Try this:
- Copy from PDF
- Paste in text file (I use Notepad)
- Copy from text file
- Paste in excel
- Select "Use Text Import Wizard…" in the paste icon
- Select Next 3 times and see if the results are correct
You can manage the wizard to request best results
1In Excel 2013:
- Copy text (from PDF file).
- Click in the spreadsheet in the upper left corner of where you want the data to go.
Paste. You may want to do “Paste” → ”Match Destination Formatting (M)”.
Ensure that the left column (Column
A) is selected.Select “Data” → “Data Tools” → “Text to Columns”.
“Step 1 of 3” – Select “Delimited” (because your strings are delimited by spaces, and do not have a fixed width). Click Next >.
“Step 2 of 3” – Select the appropriate delimiter. In your case, it looks like it is space. Click Next >.
“Step 3 of 3” – Optionally, assign a data format to each column. I usually skip this step. Click Finish. You’ll get something like this:
If you want street name and street type together,
- Enter
=D1 & " " & E1into cellF1. - Drag/fill down:
- Select Column
F. - Copy it, and paste values over Column
D. - Clear Columns
EandF.
- Enter
Combine Column
A(first name) and ColumnB(last name) similarly.