To export your iPhone contacts to an Excel spreadsheet, you should first sync your contacts with iCloud. Here's what you need to know.
In the top menu of Excel select Data > Get Data > From File > From PDF. Browse your files and select the PDF with the table in it. Now select Import. Choose the table from the list that appears and ...
To export contacts from Microsoft Outlook, you'll need to use Outlook's "Export to a file" feature, which is built-in.
The best way to do this is by converting your data to an Excel table. Select your data range (A1:E11), press Ctrl + T, and click OK. Excel names it something like "Table1"; in my case, it's Table3, ...