Small Business Math

How to Compare Budget to Actual Spending in Excel

Compare budget to actual spending in Excel with variance and percent-used formulas, SUMIFS totals from a transaction list, and flags for overspending.

On this page
  1. Set up the layout
  2. Variance
  3. Percent of budget used
  4. Pull actual spending from a list
  5. Flag overspending
  6. Totals
  7. Keep periods and signs consistent
  8. Quick checks

Set up the layout

Use one row for each budget category, with these columns:

Column Contents
A Category
B Budget
C Actual
D Variance
E % of budget

Keep the actual amounts in a separate sheet that lists each transaction with its date, category and amount. Pulling every total from one list keeps the numbers consistent.

Variance

Variance is actual minus budget:

=C2-B2

For spending, a positive variance means you spent more than planned. Name the column so the sign is clear, for example “Over (+) / under (−)”. Conventions differ, so say in the header which one you use.

Percent of budget used

=IF(B2=0,"",C2/B2)

Format the cell as a percent. A result of 110% means you spent 10% more than the budget. The IF check stops a zero budget from returning #DIV/0!. How to get rid of #div/0 error in excel covers the other places that error appears.

Pull actual spending from a list

Suppose the transactions are on a sheet called Transactions, with dates in column A, categories in column B and amounts in column C. The actual for the category in A2, between a start date in H1 and an end date in H2, is:

=SUMIFS(Transactions!$C:$C,Transactions!$B:$B,A2,Transactions!$A:$A,">="&$H$1,Transactions!$A:$A,"<="&$H$2)

SUMIFS adds only the rows that meet every condition. If you’re new to the single-condition version, how to use sumif in excel is a good place to start, and sumifs with multiple criteria in excel explains the extra conditions.

Two things commonly cause a total to come out as zero. First, category names must match exactly. A trailing space in the transactions sheet means the category gets no total. Second, the dates must be real dates, not text. How to work with dates in excel covers how to check.

Flag overspending

A status column makes it easy to scan:

=IF(C2>B2,"Over budget","Within budget")

You can also highlight the variance cells when they are over budget. The steps are in conditional formatting with formula in excel. A rule such as =$D2>0 on the variance column shades every over-budget row.

Totals

Add up the budget and actual columns with SUM. Don’t total the percentages. The total percent should be total actual divided by total budget, calculated in its own cell.

Keep periods and signs consistent

The budget and the actuals must cover the same period. A monthly budget should be compared with the actuals for that month, and an annual budget with a full year of actuals. Keep every amount in the same currency.

Decide how refunds are recorded. If they’re entered as negative amounts in the transactions sheet, they reduce the actuals, which is usually what you want. Be consistent about it, or the variance will be wrong.

Quick checks

  • Does the total of actuals match the total of the transactions for the period?
  • Do the category names match exactly, with no extra spaces?
  • Are the dates real dates, and do they cover the period you intend?

The complete guide to small business math

Excel Formulas for Small Business
Read the guide

Keep exploring

Guides from other topics

All topics →

How to Look Up Data in Excel

How lookups work in Excel, with VLOOKUP, XLOOKUP and INDEX with MATCH, how to set up your data, and how to choose the right function for the job.

Lookups 3 min read