Ravindra BagaleCourses & study guides मराठी Track your progress

27. 20 Industry Projects

Excel

27.3 Sales: Target vs Actual by Sales Rep

Example first. Isha Shinde leads a fictional field sales team of six reps and wants the monthly target review on one page.

Sales project — in 30 seconds

What: A Sales tracker: one Table tblReps, the calculated column Achievement, KPI cells, a PivotTable by City, a chart and a one-page dashboard.

Why: This is the shape of a real Sales report: Total Actual, Overall Achievement, Reps at target are the numbers a manager reads first.

Tiny example: From 6 rows: Total Actual = ₹22,64,000, Overall Achievement = 98.4%, Reps at target = 3.

First look at the data (before → after):

Sales project: before and after tables, fictional FreshGo Maharashtra data

Expected result — Calculated column

Rep Achievement
Shahrukh 109.0%
Amir 89.3%
Salman 103.0%
Zoya 85.1%
Ravina 110.3%
Raja 92.0%

About this data: Teaching sample for a fictional shop “Skyline Clinics”. Figures and names (e.g. Vikram Rao) are made up for this lesson on sales target vs actual by sales rep.

Expected result — KPI cells (expected results)

KPI Formula Result
Total Actual =SUM(tblReps[Actual]) ₹22,64,000
Overall Achievement =SUM(tblReps[Actual])/SUM(tblReps[Target]) 98.4%
Reps at target =COUNTIF(tblReps[Achievement],">=1") 3

About this data: Demo table only — not real customer or company data. Built to practise sales target vs actual by sales rep.

Before table and formula as text

Before — Table tblReps (fictional sample rows)

Rep City Target Actual
Shahrukh Pune 5,00,000 5,45,000
Amir Pune 4,50,000 4,02,000
Salman Nashik 4,00,000 4,12,000
Zoya Nagpur 3,50,000 2,98,000
Ravina Solapur 3,00,000 3,31,000
Raja Kolhapur 3,00,000 2,76,000

About this data: Made-up rows so you can copy the pattern for sales target vs actual by sales rep. Currencies may use ₹, £, € or $.

Formula / click path

Achievement: =[@Actual]/[@Target]
Total Actual: =SUM(tblReps[Actual])
Overall Achievement: =SUM(tblReps[Actual])/SUM(tblReps[Target])
Reps at target: =COUNTIF(tblReps[Achievement],">=1")

Do it step by step:

  1. Type the data and press Ctrl+T; name the Table tblReps in Table Design › Properties › Table Name.
  2. Add the column Achievement with =[@Actual]/[@Target]; the Table fills it down.
  3. On a KPI sheet type =SUM(tblReps[Actual]) and the other KPI formulas from the table below.
  4. Click Insert › PivotTable › From Table/Range, put City in Rows and Actual in Values (Sum).
  5. Click PivotTable Analyze › PivotChart › Clustered Column, then PivotTable Analyze › Insert Slicer › Rep.
  6. Move the KPI cells, the chart and the slicer onto a sheet named Dashboard.

The brief. Build a target-versus-actual sheet: achievement % per rep, total actual, overall achievement (SUM ÷ SUM, never an average of percentages), how many reps hit target, sales by city, a chart and a Rep slicer.

Calculated column formulas:

Column Formula
Achievement =[@Actual]/[@Target]

About this data: Fictional worksheet used in class. Safe to edit; nothing here is live production data.

KPI cells (check your numbers):

KPI Formula Result
Total Actual =SUM(tblReps[Actual]) ₹22,64,000
Overall Achievement =SUM(tblReps[Actual])/SUM(tblReps[Target]) 98.4%
Reps at target =COUNTIF(tblReps[Achievement],">=1") 3

About this data: Teaching sample for a fictional shop “Skyline Clinics”. Figures and names (e.g. Vikram Rao) are made up for this lesson on sales target vs actual by sales rep.

PivotTable (expected):

City Sum of Actual
Kolhapur ₹2,76,000
Nagpur ₹2,98,000
Nashik ₹4,12,000
Pune ₹9,47,000
Solapur ₹3,31,000
Grand Total ₹22,64,000

About this data: Demo table only — not real customer or company data. Built to practise sales target vs actual by sales rep.

Chart and dashboard (one under the other):

  1. Click inside the PivotTable, then PivotTable Analyze › PivotChart › Clustered Column › OK.
  2. Add a chart title and data labels with Chart Design › Add Chart Element.
  3. Click PivotTable Analyze › Insert Slicer, tick Rep and click OK.
  4. Insert a new sheet named Dashboard. In it, link a card cell to each KPI (for example =KPI!B2) and format it large and bold.
  5. Cut and paste the chart and slicer onto the Dashboard sheet.
  6. On the View tab, untick Gridlines in the Show group. Select the dashboard area and click Page Layout › Print Area › Set Print Area.

Template and guide: download the practice template Sales_Template.xlsx and read the step-by-step template guide. The template's sample rows may differ from the rows above; the method is the same.

Practice task (try it before you open the answer):

  1. Which city has the highest sum of Actual?
  2. Filter the Table on City = Pune (Data › Filter): what is Total Actual for Pune alone?
  3. Add the Clustered Column PivotChart and the Rep slicer to your Dashboard sheet.
Answer

Pune (₹9,47,000). For Pune only (2 rows): Total Actual = ₹9,47,000. The chart shows 5 bars, one per city.

Ravindra Bagale's Tip

Keep the calculated column Achievement inside the Table. New rows then get the formula automatically, and the PivotTable only needs Refresh.

Loading practice tasks...

  1. Total target (Easy): Add up Target (₹) in D2:D11. (sheet "Data")
  2. Total actual (Easy): Add up Actual (₹) in E2:E11. (sheet "Data")
  3. West rows (Easy): How many rows have Region "West"? (sheet "Data")
  4. Max actual (Easy): Largest Actual (₹) in E2:E11. (sheet "Data")
  5. Total deals (Easy): Add up Deals in F2:F11. (sheet "Data")
  6. West actual (Medium): Total of Actual (₹) where Region is "West". (sheet "Data")
  7. Actual over 800000 (Medium): How many reps have Actual (₹) > 800000? (sheet "Data")
  8. Actual of Aarav Shah (Medium): Actual (₹) for Rep "Aarav Shah". (sheet "Data")
  9. West target (Medium): Total of Target (₹) where Region is "West". (sheet "Data")
  10. Actual / Target (Hard): Total actual / total target, 3 decimals. (sheet "Data")
  11. Avg deals (Hard): Average of Deals in F2:F11, rounded to 1 decimal. (sheet "Data")
  12. Above target? (Hard): "Hit" if E2 >= D2 else "Miss". (sheet "Data")