MIP Logo

How to extract data from PDFs

This post was originally published on The Data School blog between 2018 and July 2025, before our program was renamed to MIP’s Analytics Career Accelerator. References throughout this article to “The Data School” or “DS” all refer to what is now MIP’s Analytics Career Accelerator. The program, its people, and its commitment to launching outstanding analytics careers remain the same – just under a new name.

If you are having trouble viewing this article, please report it here

Hey everyone, for this blog I want to bring more awareness to a Microsoft Excel feature that allows you to extract data from images and pdfs.

In the desktop version of Excel, you can import data from pdfs. I am using a PDF I downloaded from this website for this example (even though there already is an option to download the table’s data).

The first step to extracting this data requires us to open up excel and look at the data menu on the top left.

Clicking Data will open up a new set of tools on the bar and the one we are interested in is on the left.

Click on Get Data. That will bring up a dropdown menu.

Left-clicking From File will open another dropdown which you can select From PDF. Then find your PDF.

After selecting your PDF file a menu will pop up that will let you select where in the PDF you want to import the data from. In my case, the table I wanted to import was Table001 (Page 2). I selected that and clicked on Load on the bottom right of the menu. Then the data was extracted from the PDF and imported into Excel.

Something I want to highlight about this method is that you might end up with improper column headers which you might notice in my example. You will have to manually edit these. So, is one way you can import data tables from PDFs.

There is also a way to extract data from images however, as I mentioned earlier it requires you to do this on a phone. A link to the tutorial can be found here. One issue I’ve found extracting data from images is that the table itself can be incorrectly formatted (more than the pdf method) so use it with caution.

This was my blog about bringing awareness to an Excel feature. Thanks for reading, and have a great day.

Share this post