0
0
Google Sheetsspreadsheet~15 mins

Mixed references in Google Sheets - Real Business Scenario

Choose your learning style9 modes available
Scenario Mode
👤 Your Role: You are a sales analyst at a retail company.
📋 Request: Your manager wants you to calculate total sales commissions for each salesperson based on their sales amount and a fixed commission rate per product category. The commission rate is the same for all salespeople but varies by category.
📊 Data: You have a table listing salespeople, product categories, and sales amounts. You also have a separate table with commission rates for each product category.
🎯 Deliverable: Create a formula using mixed references to calculate the commission for each sale, then sum commissions per salesperson.
Progress0 / 4 steps
Sample Data
SalespersonCategorySales Amount
AliceElectronics1200
BobFurniture850
AliceFurniture600
CharlieElectronics700
BobOffice Supplies300
CharlieFurniture400
AliceOffice Supplies150

CategoryCommission Rate
Electronics0.05
Furniture0.07
Office Supplies0.03
1
Step 1: Add a new column named 'Commission' next to 'Sales Amount' to calculate commission for each sale.
In the first row of the new 'Commission' column (e.g., D2), enter the formula: =C2 * VLOOKUP(B2, $F$2:$G$4, 2, FALSE)
Expected Result
For Alice's Electronics sale of 1200, commission is 1200 * 0.05 = 60
2
Step 2: Copy the formula down the 'Commission' column for all sales rows.
Drag the fill handle from D2 down to D8 to apply the formula to all rows.
Expected Result
Each row shows the correct commission based on sales amount and category commission rate.
3
Step 3: Create a summary table listing each salesperson and their total commission.
List unique salespeople in a new column (e.g., H2:H4: Alice, Bob, Charlie). In I2, enter: =SUMIF(A$2:A$8, H2, D$2:D$8)
Expected Result
Alice's total commission sums to 60 + 42 + 4.5 = 106.5
4
Step 4: Copy the SUMIF formula down for all salespeople in the summary table.
Drag the fill handle from I2 down to I4.
Expected Result
Bob's total commission is 68.5; Charlie's total commission is 63.
Final Result
Salesperson  Category       Sales Amount  Commission
--------------------------------------------------
Alice        Electronics    1200          60
Bob          Furniture      850           59.5
Alice        Furniture      600           42
Charlie      Electronics    700           35
Bob          Office Supplies 300          9
Charlie      Furniture      400           28
Alice        Office Supplies 150          4.5

Summary:
Salesperson  Total Commission
-----------------------------
Alice        106.5
Bob          68.5
Charlie      63
Alice earned the highest total commission of 106.5.
Furniture category has the highest commission rate (7%), impacting commissions significantly.
Using mixed references in the VLOOKUP formula allows easy copying without changing the commission rate table range.
Bonus Challenge

Modify the commission calculation to include a bonus of $50 for sales amounts over $1000.

Show Hint
Use an IF formula combined with your existing commission formula, e.g., =C2 * VLOOKUP(B2, $F$2:$G$4, 2, FALSE) + IF(C2>1000, 50, 0)