ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Projects
  3. How to Prepare a Trial Balance in Excel With SUMIFS

How to Prepare a Trial Balance in Excel With SUMIFS

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

A trial balance lists every account's balance in a debit or credit column, and the two totals should match. In Excel, list the accounts, use SUMIFS to subtract each account's credits from its debits, then put positive balances in the Debit column with MAX(balance,0) and negative ones in Credit with MAX(-balance,0). Finally, check the column totals.

Key takeaways

  • Start from a journal with one row per line: date, reference, account, debit and credit.
  • Net balance = SUMIFS of debits minus SUMIFS of credits for that account.
  • MAX(B2,0) puts a debit balance in the Debit column; MAX(-B2,0) puts a credit balance in the Credit column.
  • Total debits must equal total credits. Compare them with ROUND to avoid tiny decimal differences.
  • A balanced trial balance doesn't prove the books are right: wrong accounts and missing entries still balance.
On this page+
  1. What a trial balance is
  2. Step 1: set up the journal
  3. Step 2: list each account once
  4. Step 3: total each account with SUMIFS
  5. Step 4: split balances into Debit and Credit columns
  6. Step 5: check that debits equal credits
  7. How to find the entry that doesn't balance
  8. From trial balance to reports
  9. Practise it

A trial balance in Excel lists every account with its balance in either a Debit or a Credit column, and the two column totals should be equal. You build it from a journal with SUMIFS: for each account, total the debits, subtract the credits, and place the result in the right column. This guide is for bookkeeping students, junior accountants and job seekers who want to see the Excel side clearly. It explains spreadsheet mechanics in plain English, not accounting advice, and the figures are a small example.

What a trial balance is#

A trial balance is a list of all the accounts in the books with their balances at one date. In double-entry bookkeeping, every transaction has equal debits and credits, so the total of all debit balances should equal the total of all credit balances. The trial balance is the check that they do.

Two terms to know:

  • Debit and credit are the two sides of each entry. Assets and expenses usually end with a debit balance. Liabilities, owner's capital and revenue usually end with a credit balance.
  • A journal is the list of entries, one row per line. Each entry has at least one debit line and one credit line.

Step 1: set up the journal#

Put each journal line on its own row, with the same account names every time. On a sheet called Journal:

ABCDE
1DateRefAccountDebitCredit
21 MarJ1Cash5,0000
31 MarJ1Owner capital05,000
43 MarJ2Rent expense1,2000
53 MarJ2Cash01,200
610 MarJ3Cash3,4000
710 MarJ3Sales revenue03,400
815 MarJ4Supplies6500
915 MarJ4Accounts payable0650
1028 MarJ5Accounts payable4000
1128 MarJ5Cash0400

Account names must match exactly, because SUMIFS compares text. "Cash " with a trailing space is a different account. A drop-down list of account names in column C prevents most of these slips.

Step 2: list each account once#

On a sheet called TB, put the account names in column A. You can type them from your chart of accounts, which keeps them in the usual order: assets, liabilities, capital, revenue, expenses. In Microsoft 365 or Excel 2021, =UNIQUE(Journal!C2:C11) lists them for you, in the order they first appear.

Step 3: total each account with SUMIFS#

The net balance of an account is its debits minus its credits. In B2 on the TB sheet:

Excel formula
=SUMIFS(Journal!$D$2:$D$11,Journal!$C$2:$C$11,A2)-SUMIFS(Journal!$E$2:$E$11,Journal!$C$2:$C$11,A2)

The first SUMIFS adds every Debit where the account matches A2. The second adds every Credit for the same account. Fill the formula down (Windows: Ctrl+D; Mac: ⌘D); the $ signs keep the journal ranges fixed. For Cash, that is (5,000 + 3,400) − (1,200 + 400) = 6,800.

The SUMIF version gives the same result, with the sum range last:

Excel formula
=SUMIF(Journal!$C$2:$C$11,A2,Journal!$D$2:$D$11)-SUMIF(Journal!$C$2:$C$11,A2,Journal!$E$2:$E$11)

SUMIFS is easier to extend. For a trial balance at a date, add a date condition: Journal!$A$2:$A$11,"<="&$H$1. The SUMIFS function guide and the SUMIF function guide explain both, and the guide to SUMIF with examples shows more criteria.

Step 4: split balances into Debit and Credit columns#

A trial balance shows each balance on its normal side, not as a plus or minus number. MAX does the split neatly. In C2 and D2:

Excel formula
C2: =MAX(B2,0)
D2: =MAX(-B2,0)

A positive net balance goes to Debit, and a negative one shows as a positive number in Credit. The other column shows 0. Fill down, then total both columns:

ABCD
1AccountNetDebitCredit
2Cash6,8006,8000
3Supplies6506500
4Accounts payable−2500250
5Owner capital−5,00005,000
6Sales revenue−3,40003,400
7Rent expense1,2001,2000
8Total8,6508,650

Both totals are 8,650, so the trial balance balances. You can hide column B once you trust the formulas.

Step 5: check that debits equal credits#

Add a check cell so you don't have to compare the totals by eye:

Excel formula
=IF(ROUND(SUM(C2:C7)-SUM(D2:D7),2)=0,"Balanced","Out by "&ROUND(SUM(C2:C7)-SUM(D2:D7),2))

ROUND to 2 decimal places matters. Amounts with cents can leave tiny differences, such as 0.0000001, which make an exact comparison fail even when the books balance.

Also check that the trial balance captured every journal line. =SUM(C2:C7) should equal =SUM(Journal!D2:D11). If it is lower, an account in the journal is missing from your list, often because of a spelling difference.

How to find the entry that doesn't balance#

If the totals differ, check each journal reference. Every entry should net to zero, so in a small helper table with references in column G:

Excel formula
=SUMIFS(Journal!$D$2:$D$11,Journal!$B$2:$B$11,G2)-SUMIFS(Journal!$E$2:$E$11,Journal!$B$2:$B$11,G2)

Any reference that doesn't show 0 is the problem entry. This is the same two-SUMIFS pattern as before, with the reference as the condition instead of the account. The guide to COUNTIFS and SUMIFS covers using several conditions together.

Remember what a trial balance can't catch. An entry posted to the wrong account, a transaction left out entirely, or one entered with the same wrong amount on both sides all still balance. It is a first check, not a full review.

From trial balance to reports#

Once the trial balance is right, the same SUMIFS pattern feeds the financial statements. Revenue and expense accounts flow into a profit and loss statement, and assets, liabilities and capital into a balance sheet. Account codes help here: if every expense code starts with 5, "5*" as a SUMIFS criterion totals all expenses at once.

These are everyday tasks in finance roles. The Excel skills for bookkeepers and the Excel test for accountants show what employers tend to check.

Practise it#

A trial balance is SUMIFS and SUMIF used carefully, with locked ranges and exact names. Practise COUNTIFS and SUMIFS in a live spreadsheet, then practise SUMIF to total by account. ExcelReady checks each formula as you type. Start with the Cash balance in the exercise on this page, or test yourself with the finance Excel mock test.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Find the Cash balance from these journal lines: total Cash debits minus total Cash credits. Click G2, use SUMIFS twice, and press Enter.

fx
ABCDEFGH
1
Account
Debit
Credit
2
Cash
5000
0
Cash balance
3
Owner capital
0
5000
4
Rent expense
1200
0
5
Cash
0
1200
6
Cash
3400
0
7
Sales revenue
0
3400
8
9
10

Tip: The first SUMIFS adds the Debit column where the Account is Cash. The second adds the Credit column for Cash. Subtract the second from the first.

Practise this in a lesson

LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.Function guideSUMIFAdd up values that meet one condition with SUMIF. Totals by category, person or amount, the argument-order trap, and a live exercise.

Frequently asked questions

How do I make a trial balance in Excel?

+

Put your journal lines in a table with account, debit and credit columns. On a second sheet, list each account once and use SUMIFS to total its debits and credits. Show the net balance in a Debit or Credit column and check that both columns add up to the same total.

Why doesn't my trial balance balance in Excel?

+

Usually one journal entry has unequal debits and credits, an account name is spelled differently from the account list, or a row sits outside the SUMIFS range. Check the difference per journal reference to find the entry.

Should I use SUMIF or SUMIFS for a trial balance?

+

Either works for one condition. SUMIFS is easier to extend, for example to add a date condition for a period-end trial balance, so many people use it by default.

Does a balanced trial balance mean there are no errors?

+

No. It only proves total debits equal total credits. An entry posted to the wrong account, an entry left out, or one with the same wrong amount on both sides still balances.

Sources

  • SUMIFS function - Microsoft Support
  • SUMIF function - Microsoft Support
  • UNIQUE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What a trial balance is
  2. Step 1: set up the journal
  3. Step 2: list each account once
  4. Step 3: total each account with SUMIFS
  5. Step 4: split balances into Debit and Credit columns
  6. Step 5: check that debits equal credits
  7. How to find the entry that doesn't balance
  8. From trial balance to reports
  9. Practise it

Keep reading

Tests & careers· 7 min read

Excel Test for Accountants: What to Expect

An Excel test for accountants usually gives you a workbook of transactions and asks you to total by account and period with SUMIFS, round tax correctly with ROUND, summarize with a pivot table, check that debits equal credits, match two lists and sort invoices into aging buckets. Accuracy and checkable formulas matter more than speed or fancy functions.

Tests & careers· 5 min read

Excel for Bookkeeping: The Skills You Use Every Day

The Excel skills used most in bookkeeping are totalling transactions by category with SUMIF and SUMIFS, rounding tax and splits to the cent with ROUND, keeping a running balance, matching two lists during a reconciliation, and adding check cells that prove your totals agree. Clean, consistent data entry makes every one of these work.

Conditional math· 7 min read

How to Use SUMIF in Excel

SUMIF adds up the numbers in the rows that meet one condition. Write =SUMIF(range, criteria, sum_range): the cells to check, what they must match, then the numbers to add. For example, =SUMIF(C2:C9,"Travel",D2:D9) totals all Travel claims. Leave out sum_range when the condition is about the numbers themselves.

More on projects

  • How to Make a Wedding Budget in Excel That Tracks Payments
  • How to Build an Accounts Receivable Aging Report in Excel
  • Appointment Tracker in Excel for Clinics and Small Teams
  • Make an Attendance Tracker in Excel
  • Do a Bank Reconciliation in Excel Step by Step
  • Build a Bill of Materials in Excel With Costs
All projects articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free