實作範例 · 掃描 PDF 轉 EXCEL
將 50 頁掃描發票轉化為已核對的應付帳款分類帳
一位會計師收到了一份為市議會會議準備的 50 頁掃描 PDF 發票。他們要求 將其轉為 Excel 中的應付帳款分類帳,每張發票一行,所有金額皆直接從掃描發票中讀取。
讀取了掃描檔,建立了包含總計與封面備忘錄核對機制的分類帳,數值精確到分。接著,在同一個 Excel 檔案中,它為每張發票新增了總分類帳類別以及一個可加回總計的摘要工作表。
1上傳內容:一份 50 頁的掃描 PDF、一份封面備忘錄及九張發票
City of Bunker Hill Village · Agenda Request
Item XII · Payment(s) Above $50,000
A. City of Houston water bill $74,323.35
B. City of Houston water bill $69,767.50
C. HR Green, BHV WO#1 Inv. #4 $101,219.80
D. HR Green, TIRZ WO#2 Inv. #5 $93,264.32
E. HR Green, BHV WO#1 Inv. #6 $72,728.61
F. HR Green, TIRZ WO#2 Inv. #6 $77,070.36
G. Memorial Villages Water Auth. $66,669.83
H. Memorial Villages Water Auth. $64,160.86
I. Red Oak Construction $97,231.03
- 50已讀取的掃描頁數
- 9已找到並輸入的發票
- $0.00與備忘錄的差額
- 1Excel 檔案,為要求 2 再次編輯
開啟真實檔案
這些是執行時的實際檔案。請下載並在 Excel 中開啟它們。
檔案來源: City of Bunker Hill Village, Texas, 2026 年 8 月 18 日市議會會議資料,議程第 XII 項,「超過 50,000 美元的付款」。公開記錄。
01 · 起始檔案
一份打字備忘錄,接著是 49 頁的掃描檔
第 1 頁是一份打字備忘錄,列出了九張發票(A 至 I),每張金額均超過 50,000 美元。第 2 至 50 頁是掃描檔:水費帳單、附有審批備忘錄及分包商備份資料的工程發票、帶有流量記錄的廢水帳單,以及一張施工發票。
掃描頁面是沒有文字的圖片。 在詢問過其語言後,首先透過文字辨識 (OCR) 進行讀取。PDF 本身並未更改。
02 · 要求 1
「建立應付帳款分類帳,每張發票一列」
會計師輸入的內容
This PDF is Item XII ('Payment(s) Above $50,000') from the Bunker Hill Village council packet for 18 August 2026. Page 1 is the typed cover memo listing nine invoices, A to I. Pages 2-50 are scans of those invoices plus backup (TGC approval memos, sub-consultant invoices, status reports, water flow records).
Please build an AP ledger in Excel with one row per memo item A-I. Do not add rows for the sub-consultant invoices (United Engineers, TEI, Cypress Environmental) - they are backup inside the HR Green packages. Columns:
1. Memo item (A-I)
2. Vendor
3. Invoice no. (for the City of Houston bills, use the account number)
4. Invoice / bill date
5. Service period or description
6. Amount due - read from the scanned invoice itself, not the memo
7. PDF page of the invoice's first page
Add a total row, and a reconciliation line showing the memo total, the ledger total and the difference.的處理方式
- 在掃描檔中找到九張發票中每一張的第一頁,並記錄其 PDF 頁碼。
- 按要求,每個金額均直接從發票本身讀取,而非從備忘錄讀取。
- 按要求略過了夾在工程文件包內的分包商發票。
- 建立了一個新的 Excel 檔案,備忘錄中的每個項目(A 至 I)各佔一列。
- 新增了作為公式的總計,以及三行檢查行:備忘錄總計、分類帳總計、差額。點擊下方綠色儲存格即可查看。
=SUM(F3:F11)| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Bunker Hill Village - Council 18 Aug 2026 - Item XII Payments Above $50,000 - AP Ledger (one row per memo item A-I) | ||||||
| 2 | Memo item | Vendor | Invoice no. (City of Houston = account no.) | Invoice / bill date | Service period or description | Amount due (USD, from scanned invoice) | PDF page (invoice first page) |
| 3 | A | City of Houston | 7099-3004-6012 | 06/19/2026 | May 2026 water purchase - treated water | 74323.35 | p.2 |
| 4 | B | City of Houston | 7099-3004-6012 | 07/22/2026 | June 2026 water purchase - treated water | 69767.5 | p.4 |
| 5 | C | HR Green, Inc. (BHV Work Order #1) | 202503 | 05/19/2026 | Professional services 04/01/2026-04/30/2026, Memorial/Gessner Phase II (Proj 2502530.01/.02) | 101219.8 | p.7 |
| 6 | D | HR Green, Inc. (TIRZ Work Order #2) | 203719 | 06/18/2026 | Professional services 05/01/2026-05/31/2026, Memorial/Gessner Phase II (Proj 2502530.03/.04) | 93264.32 | p.25 |
| 7 | E | HR Green, Inc. (BHV Work Order #1) | 204899 | 07/15/2026 | Professional services 06/01/2026-06/30/2026, Memorial/Gessner Phase II (Proj 2502530.01/.02) | 72728.61 | p.33 |
| 8 | F | HR Green, Inc. (TIRZ Work Order #2) | 204901 | 07/15/2026 | Professional services 06/01/2026-06/30/2026, Memorial/Gessner Phase II (Proj 2502530.03/.04) | 77070.36 | p.41 |
| 9 | G | Memorial Villages Water Authority | 001-26-27 | 06/01/2026 (due 07/10/2026) | May 2026 wastewater treatment | 66669.83 | p.46 |
| 10 | H | Memorial Villages Water Authority | 002-26-27 | 07/01/2026 (due 08/10/2026) | June 2026 wastewater treatment | 64160.86 | p.48 |
| 11 | I | Red Oak Construction LLC | 1057 | 04/30/2026 (due 06/03/2026) | BHV Water Plant #1-2 Chloramine Upgrades | 97231.03 | p.50 |
| 12 | TOTAL (ledger) | 716435.66 | |||||
| 13 | |||||||
| 14 | Memo total (sum of memo items A-I) | 716435.66 | |||||
| 15 | Ledger total (SUM formula cell reference) | 716435.66 | |||||
| 16 | Difference (Ledger - Memo) | 0 | |||||
我們針對掃描檔進行了核對: 所有九個金額、發票號碼和頁碼皆正確無誤,且分類帳總計 716,435.66 美元與備忘錄總計相符。
03 · 要求 2
「現在加入總分類帳類別和摘要」
會計師輸入的內容
In the same workbook, extend the ledger: 1. Add a 'GL category' column using these categories: Water purchase; Wastewater treatment; Engineering - Memorial/Gessner Ph II - BHV Work Order #1; Engineering - Memorial/Gessner Ph II - TIRZ Work Order #2; Capital - water plant. 2. Add a 'Handwritten notes' column: transcribe any handwriting on that item's pages (e.g. marks on the TGC approval memo or the invoice itself). Write 'none' if there is no handwriting, and 'illegible' if you can't read it - please don't guess. Typed 'Approved by' stamps don't count. 3. Add a 'Summary' sheet with SUMIF totals by GL category, and a check that the category totals add back to the ledger total. Don't change the turn-1 rows or amounts.
的處理方式
- 開啟剛才製作的分類帳並編輯同一個 Excel 檔案。
- 新增了「總分類帳類別」欄位,僅使用會計師提供的五個類別。
- 新增了新的「摘要」工作表:每個類別一個 SUMIF 公式、一個總計,以及一個結果為 0 的核對。
- 未更改要求 1 中的任何列或金額。我們檢查了每一個儲存格。
Water purchase| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Bunker Hill Village - Council 18 Aug 2026 - Item XII Payments Above $50,000 - AP Ledger (one row per memo item A-I) | |||||||
| 2 | Memo item | Vendor | Invoice no. (City of Houston = account no.) | Invoice / bill date | Service period or description | Amount due (USD, from scanned invoice) | PDF page (invoice first page) | GL category |
| 3 | A | City of Houston | 7099-3004-6012 | 06/19/2026 | May 2026 water purchase - treated water | 74323.35 | p.2 | Water purchase |
| 4 | B | City of Houston | 7099-3004-6012 | 07/22/2026 | June 2026 water purchase - treated water | 69767.5 | p.4 | Water purchase |
| 5 | C | HR Green, Inc. (BHV Work Order #1) | 202503 | 05/19/2026 | Professional services 04/01/2026-04/30/2026, Memorial/Gessner Phase II (Proj 2502530.01/.02) | 101219.8 | p.7 | Engineering - Memorial/Gessner Ph II - BHV Work Order #1 |
| 6 | D | HR Green, Inc. (TIRZ Work Order #2) | 203719 | 06/18/2026 | Professional services 05/01/2026-05/31/2026, Memorial/Gessner Phase II (Proj 2502530.03/.04) | 93264.32 | p.25 | Engineering - Memorial/Gessner Ph II - TIRZ Work Order #2 |
| 7 | E | HR Green, Inc. (BHV Work Order #1) | 204899 | 07/15/2026 | Professional services 06/01/2026-06/30/2026, Memorial/Gessner Phase II (Proj 2502530.01/.02) | 72728.61 | p.33 | Engineering - Memorial/Gessner Ph II - BHV Work Order #1 |
| 8 | F | HR Green, Inc. (TIRZ Work Order #2) | 204901 | 07/15/2026 | Professional services 06/01/2026-06/30/2026, Memorial/Gessner Phase II (Proj 2502530.03/.04) | 77070.36 | p.41 | Engineering - Memorial/Gessner Ph II - TIRZ Work Order #2 |
| 9 | G | Memorial Villages Water Authority | 001-26-27 | 06/01/2026 (due 07/10/2026) | May 2026 wastewater treatment | 66669.83 | p.46 | Wastewater treatment |
| 10 | H | Memorial Villages Water Authority | 002-26-27 | 07/01/2026 (due 08/10/2026) | June 2026 wastewater treatment | 64160.86 | p.48 | Wastewater treatment |
| 11 | I | Red Oak Construction LLC | 1057 | 04/30/2026 (due 06/03/2026) | BHV Water Plant #1-2 Chloramine Upgrades | 97231.03 | p.50 | Capital - water plant |
| 12 | TOTAL (ledger) | 716435.66 | ||||||
| 13 | ||||||||
| 14 | Memo total (sum of memo items A-I) | 716435.66 | ||||||
| 15 | Ledger total (SUM formula cell reference) | 716435.66 | ||||||
| 16 | Difference (Ledger - Memo) | 0 | ||||||
=SUMIF('AP Ledger - Item XII'!H3:H11,A3,'AP Ledger - Item XII'!F3:F11)| A | B | |
|---|---|---|
| 1 | Summary by GL category (SUMIF from AP Ledger - Item XII) | |
| 2 | GL category | Total (USD) |
| 3 | Water purchase | 144090.85 |
| 4 | Wastewater treatment | 130830.69 |
| 5 | Engineering - Memorial/Gessner Ph II - BHV Work Order #1 | 173948.41 |
| 6 | Engineering - Memorial/Gessner Ph II - TIRZ Work Order #2 | 170334.68 |
| 7 | Capital - water plant | 97231.03 |
| 8 | Total of categories | 716435.66 |
| 9 | Ledger total (AP Ledger - Item XII!F12) | 716435.66 |
| 10 | Check (categories - ledger; must be 0) | 0 |
從一堆掃描檔到可核對的數字
大多數 AI 工具僅在對話回覆中總結掃描檔。 會讀取每一頁,將資料放入帶有公式的真實試算表中,標註每筆資料來自哪一頁,並在你要求更多內容時,在同一個檔案中繼續處理。
繼續閱讀




