
Get the Budget vs. Actual Dashboard Workbook
Follow Leila’s tutorial and practice building a financial dashboard with XLOOKUP, budget variances, and charts.
Set Up the Dashboard Layout
We’re building a dashboard that compares actual sales, previous-year sales and budget targets for different store locations. The selected month controls the calculations and charts, so you can review different reporting periods without rebuilding the dashboard.
We want to limit the report to the current year and a month that the user selects from a list of months.

To keep things from going off on too many tangents, the data above is static text that was just typed into cells with some basic cosmetic formatting.
The store locations are entered manually in this example. If your list of locations changes regularly, you can generate a dynamic list with SORT and UNIQUE. For this tutorial, we’ll keep the locations fixed so we can focus on the dashboard calculations.
Prepare the Actual and Budget Data
Set Up the Actual Sales Data
Our dashboard data will be acquiring sales data from a sheet named “Actuals”.

This data covers a multi-year timeframe, so we’ll be able to compare a month’s sales from both the current and previous year.
This data has been formatted as a proper Excel Table and named “TSales”.
The source can be another workbook, a Power Query result or data exported from a business system. What matters is that the data ends up in a structured Excel Table named TSales, with Year, Month, Store Location and Sales columns.
If you regularly receive updated sales files, see how Power Query can help prepare and refresh data in Excel.
Set Up the Budget Data
Our planned sales data for the current year will be acquired from a sheet named “Plan”.

The Plan sheet has store locations in rows and months in columns. Each intersection contains the planned sales for that location and month. In the video, this is the 2023 budget, so you’ll need to replace it when adapting the report to another year.
Create a Month Selector in Excel
The dashboard uses two controls: a year in C2 and a month drop-down in C3. The year determines which actual and previous-year data to retrieve. The month controls which reporting period appears in the dashboard.

For the “Year” option, we want Excel to automatically determine the current year.
In cell C2, we’ll use the following formulas to calculate the current date, and then extract the year from that date.
=YEAR(TODAY())Important if you’re following the original practice file: The video uses 2023 sales and budget data. The formula =YEAR(TODAY()) returns the current year, so it may not match the available sample data when you open the workbook today.
To follow the original example, enter 2023 directly in C2. When you’re ready to use the dashboard for your own reporting, update the Actuals and Plan worksheets for your reporting year and restore =YEAR(TODAY()) if you want the dashboard to follow the current year automatically.

NOTE: If the results of the formula display as some odd date from days gone by, set the cell formatting to General and this should solve the issue.
For the “Month” option, we want the user to be able to select a month from a drop-down list. This will be accomplished using a Data Validation “List” option.
To do this, perform the following steps:
- Select cell C3.
- Click Data (tab) – Data Tools (group) – Data Validation.

- In the Data Validation dialog box, select “List” from the “Allow” option, then for the “Source” option, highlight the list of month names on the “Plan” sheet occupying cells B2 through M2.

We now have the Year/Month selection controls completed.

For more options, including lists that expand when you add new items, see how to create and manage Excel drop-down lists.
Pull Actual, Previous Year and Budget Data with XLOOKUP
Now it’s time to calculate the actual, previous year, and planned values for our table’s report.
Use XLOOKUP with Multiple Criteria
Let’s start by fetching the “Actual” values from the “Actuals” sheet.
There are many ways to fetch this data, but for this example, we’ll use the XLOOKUP function (one of my favorites).
For more ways to search using multiple conditions, see our XLOOKUP tutorial, including multiple-criteria examples.
Remember, we need to match three criteria: the selected year in C2, the selected month in C3, and the current row’s store location in B7.
To do this, we’ll tell XLOOKUP to combine these three elements into a single lookup value.
Next, we’ll combine the three columns of data from the “Actuals” sheet using the same “year/month/city” arrangement.
Finally, we’ll tell it which column to return data from once a “year/month/city” combination match has occurred.
XLOOKUP also provides a messaging mechanism for undiscoverable entries. If that occurs, we’ll respond with an empty cell (two sets of double quotes).
In cell C7, write the following formula:
=XLOOKUP($C$2&$C$3&$B7, TSales[Year]&TSales[Month]&TSales[Store Location], TSales[Sales], "")We use the “&” (ampersand) character to concatenate (i.e., combine) cells and ranges together.
Notice in the blue portion of the formula, that we have “fixed/locked” the cell references for cells C2 and C3. This is so that when we fill the formula down to the adjacent cities, those references do not move. We want the cell reference for cell B7 to move down the rows so we can see a different city for each row, but we can fix the column so that it stays on the cities when we copy the formula later.

Now for the “Previous Year” calculations.
Since the formula for “Previous Year” is very close in design to the “Actuals” formula we just created, we can recycle the “Actuals” formula by copy/pasting the formula from cell C7 into cell D7.
Copy the Actual formula from C7 to D7, rather than dragging it horizontally. This keeps the TSales column references from shifting. Then subtract one from the selected year and verify that the city reference points to B7.
The only change will be to adjust the “Year” reference ($C$2) to reduce the result by 1 so we can go back in time by one year. The rest of the formula is fine as is.
=XLOOKUP($C$2-1&$C$3&$B7, TSales[Year]&TSales[Month]&TSales[Store Location], TSales[Sales], "")
Now it’s time to fetch the values for the current year’s monthly plan.
Remember that the “Plan” values are in a cross-tabular structure, so we’ll need to perform a 2-way lookup to locate the needed value(s). We need to first locate the relevant city, then we’ll need to locate the relevant month. Once we have those two locations, we can fetch the value located at the intersection of said locations.
Select cell E7 and enter the following formula:
=XLOOKUP(B7, Plan!$A$3:$A$13, XLOOKUP($C$3, Plan!$B$2:$M$2,Plan!$B$3:$M$13), "")As you can see, this formula requires the use of two XLOOKUP functions, one nested within the other.
The inner XLOOKUP finds the selected month and returns the corresponding budget column. The outer XLOOKUP finds the store location and returns the value at the intersection.


Calculate Budget vs. Actual Variances
Add two columns for percentage variances: change from Previous Year and change from Plan. These show whether each location performed above or below its comparison value.

Calculate Year-over-Year Variance
In cell F7, calculating change from the previous year is a standard “Actual” divided by “PY” (previous) then subtract 1 type of formula.
=$C7/D7-1We will fix/lock the column reference for C7, so that we can copy it to the right (to ∆ PL %) without shifting the reference to Actuals, but leave the row reference relative to each city’s results. D7 should stay relative (not fixed).

In case there is no previous year’s data, or something else is missing, we can make this formula more robust by nesting it within an IFERROR function.
=IFERROR($C7 / D7 - 1, "")IFERROR displays a blank if the calculation fails, including when the previous-year value is zero. That’s useful for a clean dashboard, but it can also hide missing data or other formula problems.
Calculate Actual vs. Budget Variance
To calculate the difference from budget, divide Actual by Plan and subtract 1. A positive result means actual sales exceeded the plan. A negative result means sales were below plan.
You can simply copy the previous formula. Actuals ($C7) will stay in place, while PY (D7) will shift to Plan (E7).
=IFERROR($C7 / E7 - 1, "")
Build the Budget vs. Actual Charts
Create the Actual vs. Budget Chart
We’ll start by making a comparison chart for “Actual” vs. “Plan” using a column chart.
Begin by selecting the city names and their associated actuals (cells B5 through C16), then hold down the CTRL key and select the “Plan” calculations (cells E5 through E16).

Next, we’ll insert a column chart onto this sheet by pressing the ALT-F1 key combination.

Let’s update the formatting with the following adjustments:
- Change the color of “Actual” to dark gray
- Change the color of “Plan” to light gray
- Move the legend to the upper-right corner of the chart
- Move the chart title to the upper-left corner of the chart and customize it to read “Sales Actual vs. Plan”
- Set the gridlines to a very light gray
- Remove the chart’s outline
- Set a custom number format for the vertical axis using the
#,##0,,"M"code sequence

This is what you’re aiming for:

Create the Year-over-Year Variance Chart
For the chart displaying the percentage change to the previous year, select the city names including the 2 empty cells above the city names (cells B5 through B16), then hold down the CTRL key and select the “∆ PY %” calculations (cells F5 through F16).

Insert a column chart onto this sheet by pressing the ALT-F1 key combination.
Update the formatting with the following adjustments:
- Remove the gridlines
- Remove the vertical axis values
- Add data labels to the bars of the chart
- Remove the chart area’s fill color (i.e., transparent)
- Remove the chart’s border
- Resize the chart by placing it atop the previous chart, then stretching the sides until the city’s bars line up with one another

- Move the chart below the first chart to its final position.
- Remove the horizontal axis labels (2x-click a city name, then find the Format Axis – Axis Options – Labels – Label Position – set to “None”).

- Move the chart title to the left side of the chart.
- Make the colors of the bars light green for positive values and light orange for negative values. This is done by changing the Format Data Series – Fill & Line – Fill – Invert if Negative option.
For more chart-formatting techniques, see how to color Excel chart bars based on their values.

The result is as follows:

Final Thoughts
You now have a budget vs. actual dashboard that compares sales with the previous year and the selected month’s plan.
XLOOKUP brings the figures into the report, variance formulas show the differences, and charts make it easier to see which locations are performing above or below expectations. Changing the selected month updates the results and linked charts.
To reuse the dashboard with new data, keep the Actuals table and Plan worksheet up to date.
Download the Budget vs. Actual Dashboard Workbook
Download the Budget vs. Actual Practice Workbook
Get the Excel practice file and build your own dashboard with monthly budget comparisons, variance calculations, and charts.
Frequently Asked Questions
How do I create a budget vs. actual dashboard in Excel?
Start with actual sales and budget data, then create a dashboard with a year selector and month drop-down. Use XLOOKUP to retrieve the correct values, calculate the variances, and add charts to compare Actual, Budget and Previous Year.
Why does the dashboard show blank results when I open the practice workbook?
The original example uses 2023 data, but the formula =YEAR(TODAY()) returns the current year. To follow the tutorial with the original data, enter 2023 in cell C2. For your own reporting, update the Actuals and Plan worksheets to match the selected year.
How do I use XLOOKUP with multiple criteria?
Combine the selected year, month and store location with an ampersand (&). Use the same combination of columns in the lookup array. XLOOKUP then returns the sales value for the first matching record. If your data has multiple records for the same combination, aggregate them first or use SUMIFS.
How do I calculate budget vs. actual variance in Excel?
Divide Actual by Budget and subtract 1. For example, =C7/E7-1 calculates the percentage difference between Actual in C7 and Budget in E7. A positive result means sales exceeded budget, while a negative result means they fell short.
How do I compare actual sales with the previous year?
Use XLOOKUP to retrieve sales for the selected month and store location from the previous year. Then divide current Actual by Previous Year and subtract 1. Format the result as a percentage to show the year-over-year change.
Will the dashboard update automatically when I select another month?
Yes. Changing the month drop-down updates the XLOOKUP results, variance calculations and charts linked to those cells. However, you must keep the source data and budget worksheet up to date. The original dashboard doesn’t automatically create a new annual budget.
Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.









