Imagte OCR workbench

Extract Tables to Excel Accurately From Images

By Nora Quinn · Published · Updated

Getting the words out of a table is the easy part. Getting each word into the right cell is where table extraction succeeds or fails. A single shifted column can make a whole sheet wrong in a way that’s hard to spot, because every value still looks plausible.

This guide explains how image-to-spreadsheet conversion decides where cells are, which kinds of tables convert cleanly, and how to verify and tidy the result in Excel.

How a table becomes a grid

Imagte’s table to Excel tool runs OCR in your browser, then uses each recognized word’s bounding box (its position and size on the page) to build a grid.

  • Words whose boxes sit at roughly the same height are grouped into a row.
  • Gaps that line up vertically across many rows become column boundaries.
  • Each word lands in the cell where its row and column meet, and the grid is written to an .xlsx file.

Because the grid comes from word positions, alignment in the source image matters more than anything else. If the columns are visually straight and separated, the grid will be too. You can preview the result before exporting, and the original image is always there to compare against.

Ruled tables vs. whitespace tables

Ruled tables

Ruled tables have printed lines between rows and columns, like a spreadsheet printout or a bank statement with grid lines. The text is usually well aligned, which helps. But the lines themselves can cause trouble: a thick or broken rule can be read as a row of dashes, pipes or the letter “l.” Expect to delete some stray characters along borders.

Whitespace tables

Many reports, price lists and statements use no lines at all, only spacing. These convert well when the gaps between columns are clearly wider than the gaps between words in a cell. They struggle when:

  • A column has long text that nearly touches the next column.
  • Numbers are right-aligned in one column and text is left-aligned in the next, leaving an uneven gap.
  • The table is narrow and the columns are crowded together.

In both cases, check the column count against the original before you trust the sheet.

Prepare the image

Table extraction is less forgiving than plain text OCR, because position errors break the structure, not just a letter.

  1. Straighten the page. Even a slight rotation makes a column drift sideways from top to bottom, so words from one column slide into the next. Shoot straight on, or use a scanner app’s perspective correction. Our guide to scanning documents with your phone shows how.
  2. Crop to the table. Remove headings, notes and page numbers around the table. Text outside the grid can create extra rows or columns.
  3. Keep text large. Small table text is common. Aim for a lowercase x-height of about 20 pixels; zoom or rescan if needed.
  4. One table per image. If a page has two tables, crop them into separate images.
  5. Choose the right language. Headers in German or French need the matching language model so accented words come through intact.

For tables inside a scanned PDF, the scanned PDF to text tool renders each page so you can extract text; for a clean grid, export the page that holds the table as an image and crop it.

Merged cells and multi-line cells

Merged cells are the most common source of confusion.

Merged headers. A heading such as “2025” that spans two columns (“Q1” and “Q2”) has one word sitting above two columns. The grid will place it in one cell, usually the one under its left edge or center. In Excel, select the cells it should span and use Merge & Center, or better, leave it in the left cell and keep the data flat, which is easier to sort and filter.

Row labels that span several rows. A category name next to a group of rows will land in only one of them. If you plan to filter or pivot, copy the label down into each row of its group.

Text that wraps inside a cell. A long description that wraps onto two lines inside one cell may be read as two rows. Look for rows where only one column has content; that’s often the second line of a wrapped cell. Join it back to the row above.

Check rows, columns and totals

Before doing anything else with the sheet, run these checks against the source image.

  1. Count columns. Count the columns in the original header and compare. One extra column usually means a gap inside a cell was treated as a boundary. One missing column usually means two columns were too close and merged.
  2. Count rows. Compare the number of data rows. Extra rows often come from wrapped text or border noise; missing rows are often a faint line the OCR skipped.
  3. Spot-check corners. Compare the first and last cell of the first and last row. A shift usually shows up at the ends.
  4. Check totals. If the table has a total row, sum the column in Excel with =SUM() and compare with the printed figure. A mismatch points to a misread digit or a value in the wrong row.
  5. Review amber words. Low-confidence words are underlined in amber (default threshold 70). Step through them with Next suspect and fix them before export, especially in numeric columns.

Clean up in Excel

Once the structure is right, a few standard Excel steps turn OCR output into usable data.

Make numbers real numbers

OCR output often lands as text, which won’t calculate. Signs include left-aligned numbers and a green triangle in the cell corner.

  • Select the column, open Data → Text to Columns, and click Finish; this often converts text to numbers in place.
  • Or use a helper column with =VALUE(A2) and paste the results back as values.
  • Remove currency symbols and thousands separators first with Find & Replace if they block conversion.

Fix typical character swaps

Use Find & Replace with care, limited to numeric columns:

  • Letter O → digit 0
  • Letter l or I → digit 1
  • Letter S → digit 5 (only where it’s clearly a number)

Trim stray spaces

=TRIM(A2) removes leading, trailing and repeated spaces that stop lookups and filters from matching.

Decimal separators

European tables often use commas for decimals (1.234,56). If your Excel uses US settings, use Data → Text to Columns → Advanced to set the decimal and thousands separators during conversion.

Dates

Convert dates to a consistent format and confirm the day/month order against the original. A date like 04/05 is ambiguous; check one where the day is above 12 to confirm which order the table uses.

When to fix the source instead

If more than a couple of columns are shifted, don’t fix them cell by cell. Go back to the image: straighten it, crop tighter, or split the table into two narrower images. It’s usually faster than repairing a broken grid. If you want practice material, the samples page has example images you can test with.

Table extraction checklist

  • Image straight, cropped to a single table, text large enough.
  • Correct language selected.
  • Column count matches the original.
  • Row count matches; wrapped lines rejoined.
  • Merged headers and spanning labels handled.
  • Amber words reviewed, especially in number columns.
  • Numbers converted from text; totals match the printed figures.
  • Dates and decimal separators checked.

A table is only useful if every value sits in the right cell. Spend a minute on the row and column counts and you’ll catch nearly every structural error before it reaches a formula.

Try it: Table to Excel — Rebuild a table grid from word positions and download .xlsx.

Written by Nora Quinn (a pen name) with AI-assisted drafting, then edited and checked by hand against the workbench as built.