An expense tracker in Excel or Google Sheets can help you see how much you spend by category without paying for a dedicated budgeting application. The basic system needs a transaction register, a category list and a monthly summary. Once those pieces work together, formulas can calculate totals automatically as you enter new purchases. The most important step is to define what counts as an expense before building the workbook, so that transfers, card repayments and refunds do not distort the results. This tutorial uses features common to both spreadsheet programs and an illustrative set of transactions. You can adapt the categories, dates and currency formatting to your own circumstances.
Create the transaction register
Open a blank workbook and name the first sheet Transactions. Enter the headers Date, Description, Category, Account, Type, Amount and Notes in columns A through G. Use genuine spreadsheet dates rather than text that merely looks like a date. Format Amount as a number or currency and use one consistent currency throughout the register. If you frequently spend in different currencies, add separate original currency and converted amount fields and use a consistent conversion policy. Keep transaction amounts numeric; do not type currency symbols as part of text strings. Use the Notes column for references, explanations or pending status, but avoid storing account passwords or unnecessary personal details. One row should normally represent one transaction or one portion of a split transaction.
Define a consistent transaction policy
For this example, purchases have Type Expense and positive amounts. Refunds have Type Expense and negative amounts, so they reduce category spending. Transfers between your own accounts have Type Transfer and are excluded from expense totals. Income has Type Income and is also excluded. Credit card repayments are normally transfers when the underlying purchases are already recorded; card interest and fees can be separate expenses. Cash withdrawals are transfers into a cash wallet if you subsequently record individual purchases. Loan principal repayments can have a separate type for cash-flow reporting rather than being confused with consumption. Choose a policy appropriate to your needs and document it. The formula in this guide follows the stated sign convention, so changing that convention requires updating the calculation.
Enter and check a small example
| Date | Description | Category | Account | Type | Amount |
|---|---|---|---|---|---|
| 2024-01-03 | Supermarket | Groceries | Debit | Expense | 85 |
| 2024-01-04 | Bus pass | Transport | Debit | Expense | 40 |
| 2024-01-05 | Cafe | Eating Out | Credit | Expense | 12 |
| 2024-01-06 | Card payment | Transfers | Bank | Transfer | 60 |
| 2024-01-08 | Grocery refund | Groceries | Debit | Expense | -10 |
| 2024-01-10 | Supermarket | Groceries | Credit | Expense | 55 |
The correct net grocery total is 130, transport is 40 and eating out is 12. Total recorded expenses are 182. The card payment does not increase that amount because the register already includes purchases made using credit. These six entries are a useful test of the workbook before adding hundreds of real transactions. If the summary reports 242, it is probably including the transfer. If groceries show 150, check whether the refund is entered with the wrong sign. A test dataset with known answers is an effective way to detect formula mistakes.
Add categories and data validation
Create a second sheet called Categories and list your approved expense names in one column. Start with manageable groups such as Groceries, Housing, Utilities, Transport, Health, Eating Out and Entertainment. Include Transfers if it will be used in the register. Apply data validation to the Category column in Transactions using the approved list as the source. In Excel, use the Data Validation feature and a list or named range. In Google Sheets, use a dropdown from a range. Exact menus may differ by software version. A dropdown reduces spelling variations such as Grocery and Groceries that would otherwise produce separate totals. Add a second validation list for Type with Expense, Transfer, Income and any additional types you deliberately use. Check newly imported entries because pasted data can bypass or overwrite validation depending on the application and paste method.
Build a monthly category summary
Create a sheet named Summary. Enter the first day of the month to review in B1, using a valid date such as January 1, 2024. In column A beginning at row 4, list the categories. In B4, enter the following formula and copy it down alongside the categories.
=SUMIFS(Transactions!$F$2:$F$5000,Transactions!$C$2:$C$5000,A4,Transactions!$E$2:$E$5000,"Expense",Transactions!$A$2:$A$5000,">="&$B$1,Transactions!$A$2:$A$5000,"<"&EDATE($B$1,1))
SUMIFS adds amounts when all conditions match. The formula checks the category, transaction type and date range beginning at B1 and ending just before the next month. The dollar signs keep source ranges and the selected month fixed when copying the formula, while A4 changes to the next category. This example assumes English function names and comma separators; some regional settings require different separators. Expand the ranges if you need more than 4,999 transaction rows, or use a suitable structured table approach in Excel. For the sample entries, selecting January 2024 should produce the expected totals.
Add a budget comparison and chart
Use column C for the planned amount and column D for actual minus planned. In D4, enter =B4-C4 and copy the calculation downward. A positive result means recorded expenses exceed the plan. A negative result means spending is below the allocation, although that may not indicate a genuine saving if a bill is still pending. Add totals beneath the category list with SUM formulas that exclude the total row itself. Select category names and actual amounts to create a simple bar chart. A second series can display planned amounts for comparison. Avoid combining unlike metrics, such as a bank balance and monthly spending, in the same expense chart. Label the period clearly so viewers do not mistake the selected month for an annual total.
Import, reconcile and maintain the tracker
Many banks offer statement downloads. Import a small set of transactions first and map each field to the appropriate column. Inspect sign conventions, date formats and duplicates before combining imported rows with manual entries. Preserve the original export separately so you can investigate errors. At month end, compare the register with statements and add any missing cash purchases. Check that the summary includes every relevant expense category; otherwise its total may omit valid records. Protect formula cells from accidental edits where appropriate and control who can access a shared cloud workbook. Do not publish a spreadsheet containing identifiable financial information. Microsoft's SUMIFS documentation and Google Sheets function documentation describe the formula syntax, while Consumer.gov provides general budgeting guidance. With accurate inputs and a regular review habit, a simple spreadsheet can provide useful spending insights for years without unnecessary complexity.
Further Reading
Frequently asked questions
How can I calculate monthly expenses by category in a spreadsheet?
Use SUMIFS to add amounts where the category, expense type and date range match the selected month. Check that dates and amounts are stored as valid spreadsheet values.