← Back to blog

Sum a Column from a PDF in Google Sheets (Without Typing)

· Sean Harkin, Co-Founder, Sheetminer
google sheets pdf sum data extraction

Every guide to adding up a column starts in the same place: a sheet that already has the numbers in it. Select the range, type =SUM, press Enter. That advice is correct and it is completely useless when the column you need is sitting inside a PDF.

The gap is not the formula. It is the part before the formula, where the numbers have to get out of the document and into cells. That is the step that eats the afternoon, and it is where most people quietly go back to a calculator and a printout.

The two jobs, and which one you actually have

There are two different things people call “getting a PDF into Sheets”, and mixing them up is why this takes so long.

  • Convert it. Rebuild the document as rows and columns so you can work on all of it: reconcile it, filter it, pivot it. That job is covered in converting a bank statement PDF to Google Sheets.
  • Total it. You need one number. The VAT column. The withdrawals column. This month’s expenses. The rows themselves are not the deliverable.

If you have the second job and you do the first job, you have rebuilt a statement, checked a hundred rows you do not care about, and then added one column at the end. Start with the total instead.

How to total a column that lives in a PDF

The setup is a normal Sheetminer run: open the sheet, go to Extract, add the document from Drive, and pick the destination cell. The document gets processed once, which is where your pages are counted, and then the tools are available against it.

Then:

  1. With the destination cell selected, click Extract and switch to the Sum tab.
  2. Draw a box over the column you want totalled. Box the numbers themselves, not the heading row and not the running balance column next to it.
  3. The Extracted value panel shows the total and, underneath it, the Formula line: every number Sheetminer picked up in the box, in order, added together.
  4. Read the Formula line. If every number in it is a number that should be in this total, click Insert into Sheet.

That is the whole job. The total lands in the cell you picked, with a link back to the box you drew, so Inspect later opens the document at that exact spot and highlights what was summed.

For a statement where the withdrawal column reads 312.40, 1,204.18, 89.00, 2,450.00 and 1,166.32, the cell gets 5,221.90 and the Formula line shows those five figures. You did not type any of them.

Why the printed addition is the point

A total on its own is a claim. A total with the addition printed underneath it is evidence.

The failure mode that costs real money is a plausible total. Box a statement’s amount column when the layout has a running balance immediately to the right, and depending how generous your box was, you may have picked up both. The total is wrong, it looks fine, and nothing about it announces itself as wrong. The Formula line catches it in one glance, because a number that appears twice in the list is obvious when the numbers are written out.

Sum Snip also skips non-numeric text inside the box, so a slightly generous selection does not add a supplier name or a date into the total. That is deliberate: selecting a column in a PDF with a mouse is imprecise, and the tool is built for the imprecision.

When the column is not really numeric

Some documents print numbers that are numbers to a human and text to a spreadsheet.

  • Parentheses for negatives. (1,204.18) means money out. A plain sum of a column like that adds the withdrawal instead of subtracting it.
  • Trailing DR and CR markers. Same problem, typed differently.
  • Debits and credits in separate columns. Totalling the wrong one gives you a number that is internally consistent and completely wrong for your purpose.
  • Numbers with currency symbols or thin spaces as thousands separators. They read fine in the document and arrive as text in the sheet.

When the column is this awkward, extract the structure instead of the total: use Table Snip to capture the transaction table as real rows and columns, with the headers intact, then total it in the sheet with =SUM or, if you have split debit and credit columns, with matching SUMIF formulas. You get the full table rather than one figure, and the arithmetic stays in the spreadsheet where it recalculates when a row changes.

Check the subtotal against the document

The strongest check costs nothing, because documents already contain it. Bank statements print total credits and total debits. Invoices print a net, VAT and gross breakdown. Annual schedules print grand totals.

If your extracted total matches the figure the document prints for the same thing, that is a complete verification: the reading was right and the selection was right. If it does not match, the difference is your clue. A total that is too high by roughly one line means the box caught an extra row, most often a running balance or an opening balance. A total that is low means a row was outside the box, often one that wrapped onto a continuation line.

There is a second check worth running when the value matters: what does the total represent? A withdrawal total that should equal a payment run, a VAT column that should equal a filed return. The number that has somewhere to go is the number you can trust, because you have two independent routes to it. For VAT specifically, the column that ends up on a return is the one to extract and then tie back, and extracting invoice data from PDFs covers the same traceability idea for the invoices behind it.

Totals for one document, a folder, or a whole year

The same approach scales past a single column:

  • One column, one document. Sum Snip, as above.
  • The same column across many documents. Use AI Snip with a currency field, or a saved template if the documents share a format, and run it across the selected files. Useful for a folder of supplier invoices where you want the totals side by side.
  • A single field, not a total. A reference, a number, a name. That is Text Snip.
  • The detail behind the total. The line items, the transaction list, the schedule. That is a List field in AI Snip, or Table Snip, and it returns one row per repeated item with a column per property.
  • The sheet you already typed. If the figures are already in the sheet and you only need them linked back to the documents they came from, that is Search rather than extraction.

Every value inserted this way keeps its link to the source, so when someone asks where a total came from, the answer is a click rather than a phone call. If your totals end up feeding a reconciliation, that link is what makes the reconciliation reviewable rather than just plausible, which is the same reason reconciling bank statements in Google Sheets works better from linked rows than from retyped ones.

The short version

You cannot =SUM a PDF. You can box the column, get the total plus the full addition for the same numbers, check it against the subtotal the document prints, and move on. When the column is too messy to total directly, extract the table and total it in the sheet. Either way, the number arrives with a link back to where it came from, and nobody typed it.

Turn your PDF statements and invoices into Google Sheets values with Sheetminer, free to start → sheetminer.app