Set up the columns
Use one row for each transaction, with five columns:
| Column | Contents |
|---|---|
| A | Date |
| B | Description |
| C | Money in |
| D | Money out |
| E | Balance |
Put the starting amount in row 2. Type “Opening balance” in B2 and the starting figure in E2. Transactions start in row 3.
The balance formula
In the first transaction row, row 3, enter:
=E2+C3-D3
Then copy it down the column. Each balance is the balance above it, plus money in, minus money out. A blank cell counts as zero in arithmetic, so a row with only money in, or only money out, works without changes.
If a cell in column C or D holds a formula that returns an empty string, the balance formula returns #VALUE!, because text can’t be added to a number. How to fix #value error in excel lists the usual causes.
A version that doesn’t depend on the row above
This version calculates each balance from the opening figure and the totals so far:
=$E$2+SUM($C$3:C3)-SUM($D$3:D3)
It’s a little heavier to calculate, but each balance doesn’t depend on the one above it. If someone overwrites a balance by mistake, the next row still recalculates from the transactions instead of carrying the error forward.
Keep the rows in date order
The balance depends on the order of the rows. Sorting the table by amount or by description can scramble the running balance, because each row was calculated from the rows above it. Keep the table in date order, and if you need a sorted report, make a copy and sort that instead.
Check the balance
At the bottom of the table, check that the opening balance plus all money in, minus all money out, equals the last balance:
=E2+SUM(C3:C50)-SUM(D3:D50)
Adjust the row numbers to match your table. If the two figures differ, look for a row where the formula was overwritten, or a number that was typed or pasted as text. SUM ignores text, so those amounts are missing from the total. How to convert text to number in excel covers the fix.
Highlight negative balances
To make a balance below zero stand out, the approach in conditional formatting with formula in excel works well. Select the balance column, set the rule to =E3<0 (adjusting the cell reference to the first row you selected), and choose a fill color.
When to use dedicated software
A spreadsheet ledger works well for a small number of accounts and transactions. Once you have many accounts, invoices, or payroll to track, accounting software or a bookkeeper is usually the more practical choice. The spreadsheet is still useful for checking what those systems report.