Plenty of small businesses keep their books in Excel: a column for money in, a column for money out, a total at the bottom. It tells you what is in the bank. It does not tell you what customers owe, what you owe suppliers, whether you made a profit this quarter or what the business is worth on paper. For that you need proper books: double entry, a ledger, a trial balance and financial statements.
Accounting software does all of this, but Excel can too, and for a small business it has real advantages: no monthly fee, no lock-in and every number traceable to a formula. This guide shows how to do full accounting in Excel, step by step: the chart of accounts, the journal and cash book formats, the general ledger, the trial balance, the profit and loss and the balance sheet, with the formulas and a complete month for a fictional coffee roaster.
How full accounting in Excel fits together
Full accounting means double-entry bookkeeping. Every transaction is recorded twice, as a debit to one account and an equal credit to another, so the books always balance. The rules are simple:
- Assets and expenses increase with a debit.
- Liabilities, equity and income increase with a credit.
A set of books in Excel has the same structure as an accounting package, just with sheets instead of screens:
- 01Chart of accounts: the list of accounts you post to.
- 02Journal and cash book: where you record transactions.
- 03General ledger: every posting, grouped by account.
- 04Trial balance: every account's balance, proving debits equal credits.
- 05Profit and loss and balance sheet: the reports built from the trial balance.
You only ever type into the first two. Everything after that is formulas.
Step 1: set up a chart of accounts and opening balances
Create one row per account with a code, a name, a type and an opening balance. Number the codes by type so the reports sort themselves, for example:
- 1000 to 1999: assets, such as Bank, Accounts receivable, Inventory and Equipment
- 2000 to 2999: liabilities, such as Accounts payable and Loan
- 3000 to 3999: equity, such as Owner's capital
- 4000 to 4999: income, such as Sales
- 5000 to 5999: cost of sales
- 6000 to 6999: operating expenses, such as Rent, Wages and Depreciation
Add a sub-type column as well, such as Current asset, Fixed asset or Operating expense. The financial statements group lines by it, so it is worth getting right once.
Enter opening balances as debits positive and credits negative. Then check them: =SUM(OpeningBalance) must be zero. If it is not, the books are out of balance before the first transaction.
Our coffee roaster starts the fiscal year on 1 January with:
| Account | Opening balance |
|---|---|
| Bank | 12,000.00 Dr |
| Inventory (green coffee) | 4,000.00 Dr |
| Equipment (roaster) | 18,000.00 Dr |
| Loan | 4,000.00 Cr |
| Owner's capital | 30,000.00 Cr |
The debits total 34,000.00 and so do the credits, so the books open in balance.
Step 2: the journal format, with debits and credits
The journal records anything that is not a straightforward bank receipt or payment: sales on credit, supplier bills, payroll, depreciation and adjustments. Use one row per line with these columns: Entry number, Date, Account, Description, Debit, Credit.
An entry has at least two lines. To save typing, enter the date and entry number only on the first line, and let the lines below inherit them:
=IF(A3<>"", A3, A2)
Then check every entry balances:
=SUMIFS(Debit, Entry, A2) - SUMIFS(Credit, Entry, A2)
Show that value on each line. Anything other than zero means the entry is off by that amount. Add a status column that catches the other common errors: a missing date, an account code not in the chart, or an amount in both the debit and credit columns.
In January the roaster's journal has four entries:
| Entry | Date | Account | Debit | Credit |
|---|---|---|---|---|
| J1 | 10 Jan | Accounts receivable (Harbor Café) | 2,750.00 | |
| Sales | 2,750.00 | |||
| J2 | 12 Jan | Inventory | 3,600.00 | |
| Accounts payable (GreenBean Imports) | 3,600.00 | |||
| J3 | 31 Jan | Cost of sales | 3,100.00 | |
| Inventory | 3,100.00 | |||
| J4 | 31 Jan | Depreciation expense | 300.00 | |
| Accumulated depreciation | 300.00 |
J1 is a sale on credit to a café customer. J2 is a bill for green coffee from a supplier. J3 moves the coffee used in the month from inventory to cost of sales, and J4 records a month's depreciation on the roaster.
Step 3: cash book format in Excel
Most transactions in a small business go through the bank, and typing both sides of each one is slow. A cash book takes care of it. Each row has: Date, Bank account, Contra account, Description, Receipt and Payment.
You only choose the other side of the transaction, the contra account. The posting is automatic:
- A receipt debits the bank and credits the contra account.
- A payment credits the bank and debits the contra account.
Keep a running balance per bank account with SUMIFS up to the current row:
=Opening + SUMIFS($E$2:E2, $B$2:B2, B2) - SUMIFS($F$2:F2, $B$2:B2, B2)
The roaster's January cash book:
| Date | Contra account | Receipt | Payment | Balance |
|---|---|---|---|---|
| 1 Jan | Opening balance | 12,000.00 | ||
| 3 Jan | Rent expense | 1,500.00 | 10,500.00 | |
| 8 Jan | Sales (market and café counter) | 5,200.00 | 15,700.00 | |
| 15 Jan | Accounts payable (GreenBean Imports) | 2,400.00 | 13,300.00 | |
| 25 Jan | Accounts receivable (Harbor Café) | 1,800.00 | 15,100.00 | |
| 31 Jan | Loan | 300.00 | 14,800.00 | |
| 31 Jan | Interest expense | 40.00 | 14,760.00 | |
| 31 Jan | Wages | 2,100.00 | 12,660.00 |
The loan repayment is split into principal and interest on two lines, because they go to different accounts: principal reduces the loan, interest is an expense.
Step 4: the general ledger and party ledgers
The general ledger collects every posting from both the journal and the cash book, account by account. The easiest way in Excel is a single postings list, which formulas build from the journal and from both sides of each cash book line, and then one ledger view that filters it.
For any account and date range:
- Opening balance: the account's opening balance plus all postings before the start date,
=Opening + SUMIFS(Dr, Acct, a, Date, "<"&Start) - SUMIFS(Cr, Acct, a, Date, "<"&Start) - Postings: each one in date order with its source, debit and credit.
- Running balance: the previous balance plus the debit minus the credit, shown as Dr when positive and Cr when negative.
A party ledger is the same view filtered by customer or supplier. Tag each line that hits Accounts receivable or Accounts payable with a party name, and you can show what each customer owes you and what you owe each supplier. In the example, Harbor Café was invoiced 2,750.00 and paid 1,800.00, so it owes 950.00. GreenBean Imports billed 3,600.00 and was paid 2,400.00, so the roaster owes 1,200.00.
Step 5: the trial balance
The trial balance lists every account with its opening balance, debits and credits for the period, and closing balance. For each account:
=Opening + SUMIFS(Dr, Acct, a, Date, ">="&Start, Date, "<="&End) - SUMIFS(Cr, Acct, a, Date, ">="&Start, Date, "<="&End)
Put positive closing balances in a Debit column and negative ones in a Credit column, and total both. The roaster's trial balance at 31 January:
| Account | Debit | Credit |
|---|---|---|
| Bank | 12,660.00 | |
| Accounts receivable | 950.00 | |
| Inventory | 4,500.00 | |
| Equipment | 18,000.00 | |
| Accumulated depreciation | 300.00 | |
| Accounts payable | 1,200.00 | |
| Loan | 3,700.00 | |
| Owner's capital | 30,000.00 | |
| Sales | 7,950.00 | |
| Cost of sales | 3,100.00 | |
| Rent expense | 1,500.00 | |
| Wages | 2,100.00 | |
| Interest expense | 40.00 | |
| Depreciation expense | 300.00 | |
| Total | 43,150.00 | 43,150.00 |
Debits equal credits, so every entry was posted on both sides. A balanced trial balance does not prove the books are right, because a whole entry can still be posted to the wrong account, but an unbalanced one proves they are wrong.
Step 6: the profit and loss
The profit and loss sums the income and expense accounts for the period, grouped by sub-type. Reverse the sign of income so it reads as a positive number:
| January | |
|---|---|
| Sales | 7,950.00 |
| Cost of sales | -3,100.00 |
| Gross profit | 4,850.00 |
| Rent | -1,500.00 |
| Wages | -2,100.00 |
| Interest | -40.00 |
| Depreciation | -300.00 |
| Net profit | 910.00 |
Gross profit is 61.0 percent of sales and net profit 11.4 percent. Showing each line as a share of revenue makes it easy to see what moves from month to month.
Step 7: the balance sheet
The balance sheet shows the closing balance of every asset, liability and equity account at the period end. One extra line makes it balance: profit for the year, which is the net of all income and expense accounts since the start of the fiscal year. Without it, the balance sheet is short by exactly the year's profit.
| 31 January | |
|---|---|
| Bank | 12,660.00 |
| Accounts receivable | 950.00 |
| Inventory | 4,500.00 |
| Equipment, net of 300.00 depreciation | 17,700.00 |
| Total assets | 35,810.00 |
| Accounts payable | 1,200.00 |
| Loan | 3,700.00 |
| Total liabilities | 4,900.00 |
| Owner's capital | 30,000.00 |
| Profit for the year | 910.00 |
| Total equity | 30,910.00 |
| Liabilities and equity | 35,810.00 |
Assets equal liabilities plus equity. Add a check cell, =TotalAssets - TotalLiabilitiesAndEquity, that must show zero, next to the trial balance check.
Step 8: one period picker for every report
Reports are only useful if you can run them for any period. Put a choice on a dashboard: Month, Quarter, Year to date, Full fiscal year or Custom. Turn it into a start date and an end date, then point every SUMIFS above at those two cells.
- Month: start
=DATE(Year, Month, 1), end=EOMONTH(Start, 0) - Quarter: start at the first month of the quarter and end
=EOMONTH(Start, 2) - Year to date: start at the fiscal year start and end at the chosen month end
Set the fiscal year start in a settings cell. It does not have to be January: a business with a July year end sets it to 1 July, and the year to date and the balance sheet comparative follow.
Mistakes that break spreadsheet accounting
- Single entry. A money in, money out list cannot produce a balance sheet. Record both sides.
- No balance check per entry. One unbalanced entry hides in hundreds of lines. Check each entry, not just the total.
- Typing account names. One misspelling creates a new account. Pick from a list of codes.
- Typing totals. Every figure on the reports should be a formula, so nothing goes stale.
- Forgetting profit for the year. The balance sheet will not balance without it.
- Deleting old entries. Correct a mistake with a reversing entry so the history stays complete.
- No reconciliation. Compare the bank balance in the books with the bank statement every month, and supplier balances with their statements.
A complete accounting workbook, ready to use
Building everything above is a good way to learn double entry, and maintaining it is where the time goes. The Small Business Accounting System in Excel has all of it built and checked.
Set up your chart of accounts once, with a code, name, one of 14 sub-types and an opening balance, and add your customers and suppliers. Record bank and cash movements in the Cash Book, where both sides post for you with a running balance per account, and everything else in the Journal, where the lines under an entry number belong to it, each entry shows whether it balances and every line gets a status for a missing date, an unknown account, an amount on both sides or an entry out of balance.
The General Ledger shows any account for any dates with an opening balance and a running balance as Dr or Cr, and becomes a party ledger when you pick a customer or supplier. Pick a month, a quarter, the year to date, the full fiscal year or custom dates on the Dashboard and the Trial Balance, Profit & Loss (period and year to date, with each line as a share of revenue) and Balance Sheet (against the start of the fiscal year, including profit for the year) all follow. The Dashboard adds key figures, a monthly table and chart, bank balances, the largest expenses, who owes you the most and eight data checks. It holds 2,000 journal lines, 2,000 cash book lines, 200 accounts and 150 customers and suppliers, works with any fiscal year start month, locks its formulas without a password and contains no macros.
If you start from bank exports or need something lighter, these templates may help:
Common questions
Can I do full accounting in Excel?
Yes, for a small business. Keep a chart of accounts, a double-entry journal and a cash book, and build the general ledger, trial balance, profit and loss and balance sheet from them with formulas. Check that each entry balances and that the trial balance and balance sheet agree.
What is the difference between the journal and the cash book?
Use the cash book for money in and out of a bank or cash account: you pick the contra account and both sides post for you. Use the journal for everything else, such as credit sales, supplier bills, payroll and depreciation, where you enter the debits and credits yourself.
What is the ledger format in Excel?
For each account: an opening balance, then every posting with its date, source, debit and credit, and a running balance shown as Dr or Cr. A party ledger is the same view for one customer or supplier.
Why does my trial balance not balance?
Usually an entry with unequal debits and credits, an amount typed in both columns, an account code that is not in the chart or opening balances that do not sum to zero. Check each entry's balance first.
Why does my balance sheet not balance when the trial balance does?
Almost always because profit for the year is missing. Add the net of all income and expenses since the fiscal year start to equity.
Does my fiscal year have to start in January?
No. Set the start month in your settings and base the year to date and the balance sheet comparative on it.
Does it work in Google Sheets?
The template is built for Microsoft Excel 2016 or later (desktop or Excel for the web). You can import it into Google Sheets, but sheet protection does not carry over and charts may look different, so Excel is the better fit.
Double-entry books in Excel give you the same reports as accounting software, with every figure traceable to a formula. You can preview the Small Business Accounting System in Excel free; downloading it is included in the OpenWorksheet monthly plan, and you can also buy this template on its own. The business and figures in this guide are a fictional example, and this is general information rather than accounting or tax advice.