Method for Recognizing Tables and Extracting Specified Content to Excel

Describe how to extract specified columns or fields from tabular PDFs or Word documents into Excel on their own, including concrete methods such as recognizing scanned files first, filtering by column, and finding mobile phone numbers by rule, as well as key points for checking the results.

Key points of this article

  • Electronic files can be converted directly, and then the columns can be filtered; scanned copies must first go through OCR, and then the recognition results should be checked.
  • Before extraction, list the target fields and their format patterns, for example, a mobile phone number is 11 digits and an amount contains a decimal point.
  • After converting to Excel, use filters to keep the target columns; this is more reliable than manually copying row by row and makes it easier to trace back.
  • Check data such as phone numbers and amounts item by item, since recognition errors most often occur in digits, decimal points, and merged cells.
  • When handling tables containing personal information, operate only on your own device, and delete unrelated fields before sharing.

Many people have a table-heavy PDF or Word document dozens of pages long, but only need a few columns from it, such as names, phone numbers, or amounts, yet they have to copy the entire table row by row. Recognizing the whole table pulls out everything at once, and then you still have to delete columns in Excel, where it's easy to delete the wrong ones when there are many.

If you only want specific fields, the approach is to first convert the content into an editable table, then in Excel keep only the target content by column or by rule. This article is written for office workers, students, and information organizers who need to extract part of the information from a table. It explains how to judge, how to operate, and how to verify the results afterward.

Table recognition extraction: how do I pull out only the content I need? One-sentence conclusion

First convert the table to Excel, then keep only the target content by column or by field characteristics; for scanned documents, recognize the text first and then perform the extraction. Which approach to use depends on the file type and the patterns of the target fields.

Your situationRecommended PracticesCause
The document is an electronic PDF or Word file, and you can select the text.Convert directly or copy to Excel, then filter the columnsThe text is usable as is, no recognition needed.
Scanned or photographed tablesFirst perform OCR recognition, then export to Excel after verification.The text in the image needs to be turned into selectable text first.
Only one column is needed, such as the phone numberAfter converting, use Find or Filter to locate that column.Avoid manually copying line by line; both speed and accuracy are more reliable this way.
Fields are scattered throughout the sentences in the paragraph.After conversion, look up by field characteristics, such as an 11-digit numberThe content in the sentence has no fixed columns; it can only be located by following patterns.
There are a large number of documents.Process each one separately, then summarize the results under the same column names.Consistent structure makes merging easier, and the original file names can be preserved.

Before You Begin: Confirm These Points

Spending a few minutes to think before you act can save you a lot of detours.

  • Is the file electronic or a scan? Try selecting a passage of text with the mouse: if you can select it, the file is electronic; if you can't select anything and the whole page looks like a picture, it's most likely a scan or a photographed file, and you'll need to run OCR on it first.
  • Which fields are needed, and what are the column names? Write down the target columns first, for example "name, mobile number, contract amount". Discovering a missing column only after extraction makes rework far more costly than listing the columns in advance.
  • Do the fields follow a format pattern? A mobile number is 11 digits, and an amount usually includes a decimal point and thousands-separator commas. The clearer the pattern, the more stable the filtering; content without a pattern can only be located manually.
  • Does the data contain personal information? Mobile numbers, ID card numbers, and addresses all count as personal information. Process it only on devices you control, do not upload other people's spreadsheets to online conversion websites of unknown origin, and delete unrelated fields before sharing.
  • Can results be traced back to the original text? Keep the page number or source file name, so that during verification you can quickly find the original record, which also makes it easier for others to review.

Steps to Convert a Table to Excel and Extract Specified Columns in OmniDoc

If you only need the tables, OmniDoc's free extraction is the easier option: upload a PDF or scanned file, and the tables are output directly as Markdown tables, with the row and column structure also saved in document.json. Scanned files go through text and table recognition first. You need to log in to an OmniDoc account (registration is free). A single PDF is limited to 501 pages, the monthly quota is unlimited, and free jobs have to queue.

The following process works for PDF tables. Word tables can be copied directly into Excel using the general method; the steps are described later in this document.

  1. Prepare the file. Open the web version on omnidoc.top, or open the file in the desktop client. The client download address is download.omnidoc.top.
  2. Determine whether recognition is needed. If the file is a scanned document, use the OCR feature in the PDF editor so that the text in the images becomes selectable text.
  3. Check the recognition results. Focus on whether the table headers, numbers, phone numbers, and decimal points are recognized correctly. If you find obvious errors, correct them in the source file or the text first, then move on to the next step.
  4. Export to Excel. Export the PDF to Excel format to get a table that you can operate on by column.
  5. Keep the target columns. In Excel, filter by the table headers and keep only the columns you need; hide or delete the rest first. It is recommended to make a backup copy before deleting anything.
  6. Locate fields by rule. If the target is within a paragraph, use the Find function with wildcards to search for regular patterns, for example, use 11 question marks to find cells with 11-character strings, then verify each one to confirm whether it is a phone number.
  7. Save the result as a new file. Save the extracted table as a new file, and keep the original file so you can compare against it later.

If the source file is a Word document, you can first select the table in Word, copy it, paste it into Excel, and then filter directly by column; for paragraph content, look for it using the rules in step 6 above.

Verify item by item after completing

Machine recognition and screening can both make mistakes, so after extraction, check at least the following items. For important data such as phone numbers and amounts, spot-check item by item rather than relying only on the total count.

Inspection itemHow do you see it?What should I do if I have a problem?
Number of recordsCompare the number of lines or records in the source filesThe number of entries is small, so go back to the original text and check for cross-page rows, merged cells, or missed rows.
Number of digits in a mobile phone numberFilter the cells whose length is not 11 digitsMostly recognition errors or stray symbols mixed in; revise by checking against the original text.
Amount and Decimal PointSpot-check the amount column against the original text, item by item.The most common problem is lost decimal points or commas; after manually correcting them, the statistics are then calculated.
Are the columns misaligned?Check whether the headers and the data correspond one-to-one.Check merged cells and column layout, and re-export if necessary
Is the source traceable?Should page numbers or source file names be kept in the results?Without supplementing these two columns, which makes it easier to review later.

📊 Core Comparison

There are three common approaches to handling the same requirement, each suited to different scenarios.

MethodSuitable scenariosMain costs
After recognizing the whole table, delete the column in Excel.The table isn't large, and not many columns are needed.It's easy to delete the wrong column by mistake, and the steps are tedious when there are many columns.
First identify the fields, then extract only the specified columnsThe table is large, with clear and regular fields.Need to organize column names and field patterns in advance
Manually excerpt the specified contentThe data volume is very small, with only a few records.Time-consuming, prone to omissions when copying, and impossible to verify in bulk

❓ Frequently Asked Questions (FAQ)

1. Can table recognition directly identify phone numbers?

The text is recognized as characters, and whether the mobile phone numbers can be correctly extracted depends on the OCR recognition results. First use OCR to convert the scanned document into text, export it to Excel, then filter by the pattern of 11-digit numbers, and verify each entry one by one.

2. How can some information from a Word document be compiled into Excel?

You can organize the content needed from each Word document into one table using the same column names, and add a column that records the source file name. When there are many files, processing them one by one and consolidating them into a single summary is easier to check than saving a separate table for each file.

3. What is the difference between extracting invoices and extracting ordinary forms?

Fixed-layout receipt fields tend to sit in relatively fixed positions, whereas ordinary tables rely more on headers and column names. This article discusses general methods for extracting values based on column or field patterns, and is not specific to any one type of receipt.

4. How should personal information such as mobile phone numbers be protected?

Process data only on devices you control. Do not upload other people's spreadsheets to online conversion websites of unknown origin. Before sharing results, delete unnecessary fields and keep only the essential information.

📝 Summary

The key to extracting information from tables is to first determine whether the file is an electronic version, then specify which columns are needed, and finally filter by column or by pattern in Excel. By doing the OCR, export, and verification steps well, you can accurately organize the specified content into a table.

Open OmniDoc Free Extract to convert documents into Markdown and JSON

Updated 2026-11-29