Preparing your learning space...
6% through AI + Excel Projects tutorials
A sales dashboard turns raw order data into clear numbers and charts that anyone in the business can read. In this tutorial you build one in Excel and use Microsoft Copilot and ChatGPT to write the formulas and explain the results.
sales-dashboard.xlsx │ ├── Sheet: Raw_Sales (OrderID, Date, Region, Product, Qty, Price, Total) ├── Sheet: Dashboard (KPI cards, charts, slicers) ├── Sheet: Helper (Region and Product lookup lists) └── Module: SalesMacros (optional VBA to refresh)
A clean Excel table named Sales that holds all orders.
Formulas and PivotTables only work well when the data is a real table with headers and no empty rows.
Select your data and press Ctrl + T. Rename the table to Sales in the Table Design tab.
=[@Qty]*[@Price]
This formula goes in the Total column. The @ means "this row." It multiplies quantity by price for every order.
[@Qty]*[@Price] uses structured references, so it follows the table even when you add rows.Ask ChatGPT:
"I have an Excel table with columns Qty and Price. Write the formula to calculate Total for each row using structured references."
Paste the answer into the Total column. If Copilot is available, select the column and type in the Copilot pane: "Add a Total column that multiplies Qty by Price."
Three cells that show total sales, total units, and average order value.
Managers want the headline numbers without reading the whole sheet.
=SUM(Sales[Total]) =SUM(Sales[Qty]) =SUM(Sales[Total])/COUNTA(Sales[OrderID])
Ask ChatGPT:
"Write three Excel formulas: total of a column named Total, sum of a column named Qty, and average order value as total divided by count of OrderID."
Two small tables that show revenue per region and per product.
It shows which region or product earns the most.
=SUMIFS(Sales[Total], Sales[Region], A2) =SUMIFS(Sales[Total], Sales[Product], B2)
Ask ChatGPT:
"Write a SUMIFS formula that sums the Total column of an Excel table named Sales where the Region column equals the value in A2."
A PivotTable of sales by month and region, with slicers to filter.
A PivotTable groups data without writing formulas, and slicers make it clickable.
Sales, then Insert > PivotTable.Date in Rows (group by month), Region in Columns, Total in Values.Region and Product.No formula here. The PivotTable is built from the ribbon.
In the Copilot pane type:
"Create a PivotTable from the Sales table showing Total by month and region, and add slicers for Region and Product."
A line chart of monthly sales and a text box with an AI-written summary.
Charts show the trend; the summary explains it in words.
Select the PivotTable monthly totals and choose Insert > Line Chart.
Copy the monthly totals into ChatGPT and ask:
"Summarize this monthly sales trend in three sentences for a manager. Note the best and worst month."
Paste the answer into a text box on the Dashboard sheet.
OrderID | Date | Region | Product | Qty | Price | Total
Total column formula:
=[@Qty]*[@Price]
=SUM(Sales[Total]) =SUM(Sales[Qty]) =SUM(Sales[Total])/COUNTA(Sales[OrderID])
=SUMIFS(Sales[Total], Sales[Region], A2) =SUMIFS(Sales[Total], Sales[Product], B2)
ChatGPT: "Add a Total column that multiplies Qty by Price using structured references." ChatGPT: "Write SUMIFS to sum Total where Region equals A2." Copilot: "Create a PivotTable of Total by month and region with slicers." ChatGPT: "Summarize this monthly sales trend in three sentences."
sales-dashboard.xlsx.Raw_Sales is a real table named Sales.Input: 3 orders — Region "North" Qty 2 Price 10; Region "North" Qty 3 Price 10; Region "South" Qty 1 Price 20. Expected Output: Total sales = 70; North = 50; South = 20. Explanation: SUMIFS separates the regions, and SUM adds all totals.
Input: Empty table (no rows). Expected Output: KPIs show 0; average order value shows #DIV/0!. Explanation: COUNTA is zero, so division fails — see Common Errors for the fix.
Input: Add a new row to Sales with Qty 5 Price 4.
Expected Output: Total column auto-fills with 20; KPIs increase by 20.
Explanation: Structured references expand with the table.
Problem: The average formula shows an error. Reason: COUNTA found zero orders, so you divided by zero. Solution: Wrap it in IFERROR:
=IFERROR(SUM(Sales[Total])/COUNTA(Sales[OrderID]), 0)
Problem: The region total is blank or zero.
Reason: The region name in A2 has extra spaces or wrong case.
Solution: Trim the lookup cell and match exact text; use TRIM(A2).
Problem: Clicking the slicer does not filter. Reason: The slicer is connected to a different PivotTable. Solution: Right-click the slicer > Report Connections, and tick the correct PivotTable.
Save your progress and earn XP for completing tutorials.
4 questions · Pass with 70%+
1Which function totals sales for one region only?
2What does =[@Qty]*[@Price] calculate?
3What makes the dashboard interactive?
4How can ChatGPT help?
Technology
Excel with AI
Lesson group
AI + Excel Projects
Progress
6% complete