TEMPLATES & BUSINESS WORKFLOWS

Trial Balance in Excel: Build It from the General Ledger with SUMIFS

A trial balance is the first report you run at month end: every account, its balance, and proof that total debits equal total credits. In this guide you will build one in Excel straight from your general ledger lines, with SUMIFS doing the adding up, automatic checks that catch unbalanced entries and unknown account numbers, and a quick net income and balance sheet test. The free template uses a real first month of trading for a small business, so every number ties.

Trial balance in Excel at Oct 31, 2026 with total debits 61,150.00 and total credits 61,150.00, a Balanced check and net income of 1,422.25.
Total debits equal total credits: the trial balance is in balance.

What a trial balance is (and what it is not)

A trial balance lists every account in the general ledger with its closing balance, debit balances in one column and credit balances in the other. Because every journal entry has equal debits and credits, the two column totals must be equal. If they are not, something was posted wrong.

Account typeNormal balanceExamples in the template
AssetDebitCash in Bank, Accounts Receivable, Inventory, Equipment
Contra assetCreditAccumulated Depreciation
LiabilityCreditAccounts Payable, Loan Payable
EquityCredit (Drawings: debit)Owner’s Capital, Owner’s Drawings
RevenueCreditSales Revenue
ExpenseDebitCost of Goods Sold, Rent, Wages, Utilities, Depreciation

A balanced trial balance proves the arithmetic, not the bookkeeping. An entry posted to the wrong account, recorded twice or left out completely still balances. That is why the template adds extra checks, and why you still reconcile the bank and review the accounts afterwards.

Free download: Get the trial balance template (.xlsx). It has a Ledger sheet, a Trial Balance sheet with the checks and the summary, and a How It Works sheet. Works in Excel 2010 and later, Microsoft 365 and Excel for the web.

Step 1: Record every entry as ledger lines

The Ledger sheet holds one row per debit or credit, not one row per transaction. Each row has the date, the entry number (JE-001, JE-002, …), the account number, a description and the amount in either Debit or Credit. A transaction that touches three accounts takes three rows with the same entry number.

The example is the first month of trading for Maple Street Supply Co. JE-001 records the owner’s investment and a bank loan in one entry:

EntryAccountDebitCredit
JE-0011000 Cash in Bank35,000.00
JE-0013000 Owner’s Capital25,000.00
JE-0012500 Loan Payable10,000.00

Column D fills in the account name from the chart of accounts, so you only type the number:

=IF(C5="","",IFERROR(VLOOKUP(C5,'Trial Balance'!$A$5:$B$19,2,FALSE),"Not in chart"))

A mistyped account number shows Not in chart instead of an error. The account number cells also have a drop-down list (Data > Data Validation) that points at the chart of accounts; for a list that grows with the chart, use a drop-down list from a Table.

Excel general ledger with one row per debit or credit: entry JE-001 debits Cash in Bank 35,000.00 and credits Owner's Capital 25,000.00 and Loan Payable 10,000.00.
One row per debit or credit, grouped by entry number.
Checkpoint: 12 entries and 29 ledger lines in rows 5 to 33, from Oct 1 to Oct 31, 2026.

Step 2: Check that each entry balances

Catch mistakes where they happen, before they reach the trial balance. In H5, filled down to the last row:

=IF(B5="","",IF(ROUND(SUMIFS($F$5:$F$40,$B$5:$B$40,B5)-SUMIFS($G$5:$G$40,$B$5:$B$40,B5),2)=0,"OK","Check"))

The first SUMIFS adds all debits with the same entry number, the second adds all credits. ROUND to cents stops tiny floating-point differences from showing as errors. Every line of an unbalanced entry shows Check, so you see exactly which entry to fix. If SUMIFS is new to you, start with summing monthly values with SUMIFS.

Excel entry check column using SUMIFS by entry number, showing OK for every ledger line including the four lines of JE-005.
Each entry must balance on its own.
Checkpoint: JE-005, a credit sale with its cost of sales, has four lines: debits 9,600.00 + 5,280.00 and credits 9,600.00 + 5,280.00. All 29 lines show OK.

Step 3: List the chart of accounts

On the Trial Balance sheet, list every account once in A5:D19: account number, name, type and normal balance. Number accounts by type (1000s assets, 2000s liabilities, 3000s equity, 4000s revenue, 5000s and 6000s expenses) so the trial balance reads in the same order as the financial statements.

Include accounts that have no activity yet, such as a new expense account. The trial balance then shows a dash for them instead of silently leaving them out, and the chart is ready when the first entry arrives.

Excel chart of accounts with 15 accounts, each with an account number, a type and a normal balance of Debit or Credit.
The chart of accounts drives both the lookups and the trial balance.
Checkpoint: 15 accounts. Accumulated Depreciation is typed as an Asset with a Credit normal balance, because it is a contra asset.

Step 4: Pull the debits and credits with SUMIFS

For each account, total the ledger debits in E5 and the ledger credits in F5, then fill down:

=SUMIFS(Ledger!$F$5:$F$40,Ledger!$C$5:$C$40,A5)
=SUMIFS(Ledger!$G$5:$G$40,Ledger!$C$5:$C$40,A5)

The sum range is the Debit (or Credit) column, the criteria range is the account number column, and the criterion is the account number in A5. The ranges run to row 40, past the last entry, so new lines are picked up as soon as you type them. Whole columns (Ledger!F:F) also work if you prefer.

Excel trial balance pulling ledger debits and credits per account with SUMIFS: Cash in Bank 45,750.00 of debits and 23,712.75 of credits.
SUMIFS totals the ledger by account number.
Checkpoint: Cash in Bank has 45,750.00 of debits and 23,712.75 of credits.

Step 5: Put each balance in Debit or Credit

A trial balance shows each account’s net balance once, on its natural side. In G5 and H5:

=MAX(0,E5-F5)
=MAX(0,F5-E5)

If debits are larger, the difference lands in Debit and Credit shows a dash; if credits are larger, the reverse. Total both columns in row 20 and compare them in D22:

=IF(ROUND(G20-H20,2)=0,"Balanced","Out by "&TEXT(G20-H20,"#,##0.00;(#,##0.00)"))
CheckFormulaResult
Debits = credits=IF(ROUND(G20-H20,2)=0,...)Balanced
Lines in unbalanced entries=COUNTIF(Ledger!$H$5:$H$40,"Check")0
Lines not in chart=COUNTIF(Ledger!$D$5:$D$40,"Not in chart")0
Ledger = trial balance=IF(ROUND(SUM(Ledger!$F$5:$F$40)-E20,2)=0,"Ties","Check")Ties

The last check matters: a ledger line with an account number that is not in the chart is ignored by every SUMIFS, so the trial balance could look fine while the ledger is not. Comparing the ledger total with the trial balance total catches it.

Excel trial balance with each balance in the Debit or Credit column using MAX, totals of 61,150.00 on both sides and checks showing Balanced, 0 and 0.
Totals agree and every check passes.
Checkpoint: Total debits 61,150.00 = total credits 61,150.00. The ledger columns total 102,877.75 each; the trial balance columns are smaller because each account shows only its net balance.
Watch the normal balance: A balance on the wrong side is a red flag even when the totals agree. Cash with a credit balance means an overdraft or a missing deposit; Accounts Payable with a debit balance often means a supplier was paid twice. Compare column G or H with the Normal balance column.

Step 6: Check net income and the balance sheet

Because every account has a type, SUMIFS on the Type column turns the trial balance into a quick income statement and balance sheet test (J4:K13). Revenue, for example:

=SUMIFS($H$5:$H$19,$C$5:$C$19,"Revenue")-SUMIFS($G$5:$G$19,$C$5:$C$19,"Revenue")
LineOctober 2026
Revenue16,450.00
Expenses15,027.75
Net income1,422.25
Total assets44,922.25
Total liabilities19,500.00
Equity before net income (capital less drawings)24,000.00
Liabilities + equity + net income44,922.25

Assets equal liabilities plus equity plus net income, so K13 shows Ties. Total assets are net of the 200.00 of accumulated depreciation, which comes from the depreciation schedule (12,000.00 of equipment over 60 months). From here, the revenue and expense lines feed the monthly profit and loss statement.

Excel trial balance summary by account type: revenue 16,450.00, expenses 15,027.75, net income 1,422.25 and total assets 44,922.25 equal to liabilities plus equity plus net income.
Net income and the accounting equation, straight from the trial balance.
Ready-to-share test: On the Ledger sheet, change the wages debit in F28 from 3,600.00 to 3,060, a classic transposition. Both JE-010 lines show Check, D22 shows Out by (540.00), D23 shows 2 and K13 shows Check. A difference divisible by 9 (540 / 9 = 60) usually means two digits were swapped. Change it back to 3,600 when you are done.

How to find an out-of-balance difference

  1. Look at the entry check column first: any entry showing Check is the cause.
  2. If every entry is OK, check Lines not in chart and Ledger = trial balance; an unknown account number drops a line from the trial balance.
  3. Halve the difference and look for that amount: a debit entered as a credit moves the totals by twice the amount.
  4. Divide the difference by 9: if it divides evenly, look for a transposition (3,600 typed as 3,060) or a slide (3,600 typed as 360).
  5. Look for formulas that were overwritten with values; finding inconsistent formulas and Excel’s error checking rules both help.

Month-end checklist before you run the trial balance

  • Bank accounts reconciled (see the bank reconciliation template) and petty cash replenished (see the petty cash log).
  • Depreciation, accruals and prepaid amortization posted.
  • Accounts Receivable and Accounts Payable balances agree with the aging reports.
  • Inventory agrees with the stock count or the inventory system.
  • Every entry shows OK and every check on the Trial Balance sheet passes.

Frequently asked questions

How do I make a trial balance in Excel?

List your chart of accounts, total the ledger debits and credits for each account with SUMIFS, put the net balance in a Debit or Credit column with MAX, and check that the two column totals are equal.

Why does my trial balance not balance?

Usually an entry with unequal debits and credits, an account number that is not in the chart (so SUMIFS skips the line), or a typo such as a transposed number. Check the entry check column first.

Is the trial balance the same as the balance sheet?

No. The trial balance lists every account, including revenue and expenses. The balance sheet shows only assets, liabilities and equity, with the year’s net income included in equity.

What is an adjusted trial balance?

The trial balance after month-end adjusting entries such as depreciation, accruals and prepaid amortization. In the template, add the adjusting entries to the Ledger sheet and the trial balance updates.

Can I use this with ledger exports from accounting software?

Yes. Paste the export into the Ledger sheet (date, entry number, account number, debit, credit) and make sure every account number is in the chart of accounts.

Final checklist

  • Every ledger line has an entry number and an account number from the chart.
  • Every entry shows OK in the Entry check column.
  • Debits = credits shows Balanced, and both line counts show 0.
  • Ledger = trial balance shows Ties.
  • No account has a balance on the wrong side without a good reason.
  • Assets = L + E shows Ties.
Practice file: Download the trial balance template. Clear the yellow ledger cells and type your own chart of accounts to start; the formulas and checks stay in place.

Close the month with confidence

Browse the ready-to-use Excel templates for more accounting tools, visit the OneXcel Tutorial Hub for step-by-step guides, or turn your trial balance into a dashboard with the OneXcel Dashboard Builder.