T accounts in Excel: post, balance and check
Double-entry bookkeeping clicks once you see every entry land on both sides. This template posts your journal entries into T accounts by formula, shows each account with the other side of every entry, and proves in a trial balance that debits equal credits.
In short: each journal entry is one row with a debit account, a credit account and an amount. SUMIFS adds up the debits and credits for every account, plus its opening balance. The balance goes on the smaller side. The trial balance lists every account and checks that total debits equal total credits.
You should know: SUMIF and IF. Made for accounting students, bookkeeping trainees and anyone who wants to practice journal entries.
Try it now
Seven journal entries, one account: post the bank into its T account and work out the balance.
Task Post the journal into the T account of the account in H1 (1010 Bank). H3: total of the debit side, which is the opening balance plus every amount where the account is debited. H4: every amount where it is credited. H5: the balance (debits minus credits).
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Description | Debit | Credit | Amount | Account | 1010 | |||
| 2 | Customer pays into bank | 1010 | 1200 | 8000 | Opening balance | 25000 | |||
| 3 | Supplier paid | 2000 | 1010 | 5000 | Total debits | ||||
| 4 | Warehouse rent | 6100 | 1010 | 1200 | Total credits | ||||
| 5 | Cash withdrawn | 1000 | 1010 | 500 | Balance | ||||
| 6 | Cash sale into bank | 1010 | 4000 | 3000 | |||||
| 7 | Wages paid | 6000 | 1010 | 3500 | |||||
| 8 | Sale on account | 1200 | 4000 | 4000 | |||||
| 9 | |||||||||
| 10 |
Download the T account template
The file has five sheets. The Chart of accounts holds up to 40 accounts with number, name, type and opening balance. The Journal has room for 300 rows; column G spells out each entry, such as "Dr 1010 Bank / Cr 1200 Accounts receivable", and column H flags missing accounts and incomplete rows. The T account sheet shows the account you pick with its opening balance, every debit and credit with date and the other account, the balance and the totals. The Trial balance works out all accounts at once, checks that debits equal credits and closes to net income and the accounting equation. An instructions sheet is included. The sample is a January with purchases and sales on account, rent, wages and a loan repayment.
Enlarge previewDownload the finished template
The finished Excel file t-account-template.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.
Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.
Create a free account and download the template Already have an account? Log in
How a T account works
Debits go on the left, credits on the right. Which side increases an account depends on its type:
| Type | Increase (normal balance) | Decrease | Closes to |
|---|---|---|---|
| Asset (cash, bank, receivables, equipment) | Debit | Credit | Balance sheet |
| Liability (payables, loans) | Credit | Debit | Balance sheet |
| Equity (owner's capital) | Credit | Debit | Balance sheet |
| Revenue (sales) | Credit | Debit | Income statement |
| Expense (wages, rent, purchases) | Debit | Credit | Income statement |
Revenue and expense accounts start the year at zero, so the chart of accounts turns an opening balance on them red. The balance is the difference between the two sides and is written on the smaller side so both columns add up to the same total. On a balance sheet account it is the closing balance; on revenue and expense accounts it closes to net income.
Build the T accounts yourself
1. Chart of accounts and journal
In the chart of accounts, enter each account number and name, pick the type from a drop-down list and add the opening balance. In the journal, each row gets a number, date, description, debit account, credit account and amount; both accounts come from a drop-down fed by the chart. A compound entry, such as rent paid partly in cash and partly from the bank, takes two rows with the same number, so every row stays one debit, one credit and one amount.
2. Totals per account with SUMIFS
For the account in A5 of the trial balance, =SUMIFS(Journal!$F$5:$F$304,Journal!$D$5:$D$304,A5) adds every amount where the account is debited. The same formula on column E gives the credits. The opening balance goes on the side of the account's normal balance. Total debits minus total credits is the balance; MAX(0,…) splits it into a debit and a credit balance column. More in the SUMIFS lesson.
3. The balance by account type
Whether you take debits minus credits or the other way round depends on the type. OR tests two types in one go:
Task In E2, work out the account balance so that it is positive when the account sits on its normal side: asset and expense accounts are debits minus credits, liability, equity and revenue accounts are credits minus debits. The formula is filled down to E7.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Account | Type | Total debits | Total credits | Balance |
| 2 | Bank | Asset | 33000 | 11200 | |
| 3 | Accounts receivable | Asset | 19900 | 8000 | |
| 4 | Accounts payable | Liability | 5000 | 9760 | |
| 5 | Owner's equity | Equity | 0 | 54500 | |
| 6 | Sales revenue | Revenue | 0 | 10000 | |
| 7 | Wages | Expense | 3500 | 0 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
4. The T account with every entry
To list the entries, a helper column in the journal numbers each debit to the selected account: =IF(D5<>'T account'!$B$3,"",COUNTIF(D$5:D5,'T account'!$B$3)). On the T account, MATCH(1,…,0) finds the first, second and third entry, and INDEX returns its date, other account and amount. That works in every version of Excel, without FILTER.
5. Checks and closing
Every amount is posted once as a debit and once as a credit, so the trial balance columns agree as long as the opening balances do. The template checks three equations and counts journal rows with a problem. The closing summary works out net income as revenue minus expenses and checks the accounting equation: assets = liabilities + equity + net income. Finally, sheet protection locks the formulas.
Common mistakes
Debit and credit swapped
"Dr Bank / Cr Accounts receivable" means the bank goes up and the receivable goes down. Swap them and the totals still agree, but both balances are wrong. The Entry column reads the entry back to you, which makes a swap easy to spot.
Account not in the chart
An account number that is not in the chart of accounts lands in no total. Column H flags it and the trial balance counts such rows.
Opening balance on a revenue or expense account
Sales and wages start at zero each year. An opening balance there shifts net income; the cell turns red.
A trial balance that agrees is not proof
Equal totals only show that every entry has two equal sides. A posting to the wrong account, or one left out completely, still balances. Read the T accounts as well.
T account formulas in German Excel
| English | German |
|---|---|
| SUMIFS, SUMIF, COUNTIF | SUMMEWENNS, SUMMEWENN, ZÄHLENWENN |
| INDEX, MATCH, IFERROR | INDEX, VERGLEICH, WENNFEHLER |
| IF, OR, AND, MAX, ROUND | WENN, ODER, UND, MAX, RUNDEN |
German Excel separates arguments with a semicolon. Debit and credit are Soll and Haben, the trial balance is the Summen- und Saldenliste, and an entry reads "2800 Bank an 2400 Forderungen".
Which Excel versions support this?
SUMIFS, COUNTIF, INDEX and MATCH work in every current version of Excel, including Excel for Mac and Excel for the web. The template needs no Microsoft 365 functions.
FAQ
Is the T account template free?
Yes. Sign up for a free account to download the Excel file. No subscription, no payment details.
Which chart of accounts does it use?
None in particular. The account numbers in the sample are only an example; use the numbers from your course or your business.
How do I enter a compound entry?
Use one row per debit and credit pair with the same entry number. For example, wages of 3,500 paid 3,000 from the bank and 500 in cash become two rows: wages to bank and wages to cash.
Why does the balance go on the smaller side?
So both sides add up to the same total and the account is closed. The balance is then carried down as the opening balance of the next period, or closed to the income statement.
Does it replace accounting software?
No. It is a learning and checking tool. See Excel for accounting for real bookkeeping tasks; the profit and loss template and the balance sheet template report the result and the position.