Guide

Cleaning extracted tables for Excel and Google Sheets: numbers, dates, and leading zeros

How to prevent broken leading zeros, decimal separator mismatches, and formula injection when exporting scanned tables to XLSX or CSV.

By Max-Q Studio Team8 min read

Extracting a receipt, stock sheet, or supplier price list into a spreadsheet is only half the job. Even when every letter was read cleanly, opening a raw extracted table in Microsoft Excel or Google Sheets can quietly strip leading zeros from product SKUs, turn a fraction or date upside down, or refuse to sum a column formatted with Indonesian or European thousand separators. Here is how to audit and clean extracted tables before they enter your books.

1. Protect leading-zero identifiers (SKUs, NIK, phone numbers)

Spreadsheets love treating digit-only strings as plain numbers. If a warehouse SKU is 004812, a postal code is 02138, or a phone number begins with 0812, double-clicking a raw CSV file in Excel often strips the opening zero (4812) or turns 16-digit ID numbers into scientific notation (3.201E+15) that destroys the last digits permanently.

  • Prefer XLSX over double-clicking CSV: Exporting XLSX from Document to Excel stores cell types directly so text identifiers keep their leading zeros cleanly.
  • When importing CSV, use the Import wizard: In Excel go to Data → From Text/CSV (or in Google Sheets use File → Import with automatic number conversion turned off for ID columns) and explicitly mark SKU, ID, and phone columns as Text.

2. Watch decimal and thousand separators across locales

Depending on where a document was printed, the exact same currency amount appears in opposite ways:

Regional stylePrinted exampleWhat happens in the wrong spreadsheet locale
English / US / UK1,250.50An Indonesian/European spreadsheet may treat it as text instead of a number
Indonesian / European1.250,50 or Rp 125.000A US-locale spreadsheet may misread 125.000 as 125 instead of 125,000!

Before running SUM or importing into accounting software, strip currency prefixes like Rp,USD, or stray spaces from numeric columns, and check that every cell in the amount column aligns to the right (or converts cleanly with =ISNUMBER(C2)). One text-formatted cell sitting inside a column of numbers will be silently skipped by SUM.

3. Ambiguous dates (04/07/2026 vs 07/04/2026)

Printed receipts rarely announce whether 04/07/2026 means 4 July (DD/MM/YYYY) or 7 April (MM/DD/YYYY). Whenever you clean a date column inside Document to Excel or your spreadsheet editor, convert dates to unambiguous ISO format (2026-07-04) so sorting chronologically never scrambles months and days.

4. Formula-injection safety (=, +, -, @)

Sometimes a legitimate cell starts with a symbol, such as an international phone number like +62 812 3456 7890, a bullet dash like - Extra packaging, or a handle like @supplier. Naive CSV exporters write those characters verbatim, causing Excel to interpret them as live spreadsheet formulas (or triggering errors like #NAME?). Document to Excel exports literal edited values safely without turning formula-looking strings into active spreadsheet formulas, so phone numbers and notes stay plain data.

5. Fixing merged cells, wrapped descriptions, and split columns

Real paper invoices frequently wrap a long product description onto a second line while leaving quantity and price blank on that extra line. Clean these up right inside Document to Excel’s live grid while the source image is still visible beside it:

  1. Merge continuation text into one row: Cut the stray second-line phrase into the main item description cell, then delete the now-empty leftover row.
  2. Check multi-page table headers: Multi-page PDFs often repeat column headers at the top of page 2 and page 3. Remove duplicate mid-table header rows if you plan to sort or filter the full dataset.
  3. Keep genuinely different tables on separate sheets: Summary blocks (Subtotal, Tax, Grand Total) should sit cleanly below the table or on a separate tab rather than mixed into item columns.

6. The 60-second mathematical audit

Never read 50 extracted rows digit by digit when basic arithmetic catches almost every mistake in seconds:

  1. Row check: In a spare column, add =Quantity * UnitPrice and compare against the extracted line total. Any non-zero difference flags an OCR digit swap on that exact row.
  2. Column check: Sum the line-total column with =SUM(...) and compare it to the grand total printed on the paper.
  3. Row count check: Count item rows on the paper (e.g. 25 items) and confirm your spreadsheet has the exact same 25 rows; missing the bottom line of a tightly cropped scan is easy to miss visually.

Have the original digital PDF? Drop it directly into Document to Excel instead of scanning a printout; native PDF text avoids character misreads altogether and runs locally with zero uploads.

About this guide: Written and tested by the Max-Q Studio engineering team against the real tools running on maxq.tools. Spotted something outdated or unclear? Let us know · Our editorial standards

File exceeds the size limit

Images: Max 10 MB per file. PDFs: Max 20 MB per file.