Excel for Accounting and Finance: How-To Guide
In this article
Excel is the working tool of accounting and finance because it holds the ledger detail and calculates the totals in one place. To use it well you do two things: build a clean, structured data sheet (one row per transaction, one column per field, no blank rows or merged cells), and then use formulas such as SUM, SUMIFS, VLOOKUP or XLOOKUP, IFERROR and PivotTables to total, classify and reconcile that data. If your source data is tidy and your formulas are locked to named ranges, everything else—reconciliations, budgets, aged debtors, cash flow forecasts—builds on that foundation.
What You'll Need
- A spreadsheet application: Microsoft Excel (desktop, Microsoft 365, or Excel for the web) or a compatible alternative such as Google Sheets or LibreOffice Calc. Menu labels vary slightly by version, platform and region, so the exact wording may differ from what you see.
- Your source data: bank statements or transaction exports as CSV or OFX from your bank's online portal, or a trial balance exported from your accounting system.
- A consistent chart of accounts or category list—the names you will use to classify every transaction.
- A basic understanding of debits and credits, and of what each report you produce is supposed to prove.
- Optional but useful: a separate tab or workbook for reference data (account names, categories, tax rates) so your formulas point to one place.
Step-by-Step
- Set up a clean workbook. Create one sheet called Data for transactions and separate sheets for Reports, Reference and Reconciliation. Keep the Data sheet as a plain table: row 1 holds column headers only (Date, Description, Reference, Debit, Credit, Account, Category), and every row below is one transaction. Never merge cells in the data area and never leave blank rows—they break sorting, filters and PivotTables.
- Import your transactions. In Excel, use Data > From Text/CSV (on the desktop ribbon) or open the CSV directly and paste it in. Use Data > Text to Columns only if dates and amounts arrive as text. On the web version, the import options are more limited, so import on desktop or copy-paste carefully. Get dates into a real date format and numbers into real number format—left-aligned numbers are text and will not sum.
- Format as a Table. Select your data and use Insert > Table (Ctrl+T on Windows, Command+T on Mac). A Table carries formatting down to new rows and gives you structured references, so SUMIFS formulas keep working as data grows. Give the table a meaningful name using Table Design > Table Name.
- Add helper columns. Add a Month column with
=EOMONTH(A2,-1)+1to snap every date to the first of its month, and a Signed Amount column that combines debits and credits into one figure:=E2-F2(debit minus credit). These two columns make PivotTables and rolling totals far easier. - Classify every transaction. Fill the Account and Category columns using a Data Validation list (Data > Data Validation > List) drawn from your Reference sheet. This prevents typos and keeps category names consistent. If you have a recurring vendor list, use a lookup to auto-fill the category from the description, then check the results manually.
- Build summary formulas. On the Reports sheet, use
SUMIFSto total by category and month:=SUMIFS(Data[Signed Amount],Data[Category],$A2,Data[Month],B$1). UseCOUNTIFto check row counts, and wrap formulas inIFERRORso a missing lookup shows a blank instead of #N/A clutter. - Create a PivotTable. Select the Data table and choose Insert > PivotTable, placing it on a new sheet. Drag Month to Rows, Category to Columns, and Signed Amount to Values. This gives you an instant income-and-expense matrix. Refresh it (right-click > Refresh) after every data change—PivotTables do not update themselves.
- Do the bank reconciliation. List the closing bank balance, then subtract any cheques or payments not yet cleared and add any deposits not yet banked. In Excel, put that calculation on its own sheet with one labelled line per adjustment, and compare the result to your book balance. A difference of zero proves the two records agree; any difference tells you exactly how much is unresolved.
- Build the reports you actually need. For a profit-and-loss view, use SUMIFS against your category list, with revenue categories as positive and expense categories as negative. For receivables, add a Days Outstanding column with
=TODAY()-DueDateand use COUNTIFS to group into current, 30, 60 and 90-plus buckets. For cash flow, list opening cash, add forecast receipts, deduct forecast payments, and carry the closing balance into next month's opening line. - Check totals before you trust them. Run three controls: total debits must equal total credits; the sum of every category total must equal the sum of all signed amounts; and the number of transaction rows must match your source export. If any control fails, stop and find the cause before publishing the report.
- Protect the structure, then save a version. Lock formula cells (Review > Protect Sheet) but leave input cells unlocked so data entry still works. Save a dated copy each period rather than overwriting the original, and keep the imported CSV alongside it so the numbers can be traced back.
Common Mistakes
- Storing numbers and dates as text. If a column will not sum or sort, check alignment and use Data > Text to Columns to convert.
- Mixing two or more periods in one sheet with subtotal rows in between. Subtotals inside data break sorting and double-count in PivotTables.
- Typing categories by hand instead of picking from a validation list, which produces near-duplicates such as "Travel" and "Travel ".
- Hard-coding a bank balance or a tax rate inside several formulas. Put it once on the Reference sheet and point every formula at that cell.
- Forgetting to refresh PivotTables—reports then show last month's numbers.
- Using merged cells for headings inside the data area, which silently breaks filters, sorting and many lookups.
- Reconciling only to the total instead of line by line, so a missed item is hidden by an offsetting error elsewhere.
Tips
- Use named ranges for key reference cells;
=SUMIFS(...)with names is easier to audit than addresses like$B$7:$B$900. - Use conditional formatting to flag exceptions: negative cash balances, overdue invoices, or amounts above a threshold.
- Keep raw imports on a separate, untouched tab and build your analysis on a copy. You can always re-import and re-check if something looks wrong.
- Prefer XLOOKUP where your version supports it—it handles missing values more gracefully than VLOOKUP and does not depend on column position.
- Write the purpose of each report at the top in one sentence, and date it. Anyone opening the file later will know what they are looking at.
- Add a blank "Notes" column to every data sheet. Explaining an odd entry once saves a long investigation later.
Troubleshooting
- A SUM returns zero. The range contains text-formatted numbers. Select the column, run Data > Text to Columns, and finish to convert.
- Your VLOOKUP returns #N/A. Either the lookup value has a trailing space or a mismatched type, or the value genuinely is not present. Use
TRIMon both sides, or switch to XLOOKUP with a blank fallback. - Totals do not match the bank. Compare row counts first, then look for duplicates from a double import, then unmatched references. Reconcile in date order and clear one item at a time.
- A PivotTable is missing new transactions. Refresh it; if the source range changed shape, use Change Data Source to point at the whole table again.
- A formula copied down gives the wrong row. Check that you used relative references where the row should move and absolute references (with $) where it should not.
- The file has become slow. Too many full-column references (like A:A) and volatile functions such as TODAY() recalculating on every edit are common causes. Limit ranges to the actual table and convert formulas to values where the result is final.
Frequently Asked Questions
Do I need Microsoft 365, or will an older Excel version work?
Most of this works in any recent Excel version and in Google Sheets or LibreOffice Calc. XLOOKUP and dynamic arrays need a newer version, so substitute VLOOKUP and fixed ranges if your version lacks them.
Can I import transactions directly from my bank into Excel?
Download a CSV or OFX export from your bank's online portal and import that file. Excel does not log into your bank by itself; the export is the reliable route.
Should I use Excel or proper accounting software?
Excel is excellent for analysis, reconciliation and reporting. For double-entry bookkeeping with audit trails and tax filings, dedicated accounting software is usually a better primary record, with Excel used for analysis and checks.
Why do my debit and credit totals not balance?
Almost always a missing row, a duplicated import, or a number stored as text. Sort by amount, look for blanks in required columns, and confirm the row count matches the source.
How often should I reconcile?
Monthly at minimum, and more often if transaction volume is high. Reconciling promptly means fewer open items and less time hunting for the cause of a difference.
Can I protect formulas without locking data entry?
Yes. Unlock the input cells first (Format Cells > Protection, clear Locked), then apply Review > Protect Sheet. Formula cells stay locked while input cells remain editable.