EXCEL · COMMERCIAL ANALYSIS
Profitability analysis in Excel: revenue, profit and weighted margin
Build a product-level revenue and cost table, calculate total gross margin correctly, and turn the result into a commercial question.
Calculate total gross margin by dividing total gross profit by total revenue. A simple average of product margins can mislead when their sales differ.
Define the table before the formulas
Choose a period and a level of detail, such as one row per product per month. Do not combine individual rows with subtotals.
All amounts below are fictional and exclude VAT on a consistent basis. Revenue is after discounts; cost is the cost of the products sold.
| Product | Revenue | Cost | Gross profit | Margin |
|---|---|---|---|---|
| A | 1,000 | 600 | 400 | 40% |
| B | 9,000 | 8,100 | 900 | 10% |
| Total | 10,000 | 8,700 | 1,300 | 13% |
Calculate row-level profit and margin
Use column A for product, B for revenue, C for cost, D for gross profit, and E for gross margin. In D2 enter =B2-C2 and in E2 enter =D2/B2. Copy both to the next row and format E as a percentage.
Product A generates revenue of 1,000 and gross profit of 400: a 40% margin. Product B generates revenue of 9,000 and gross profit of 900: a 10% margin. Review rows with zero or negative revenue separately.
Weight the margin through revenue
Total gross profit is 1,300 and total revenue is 10,000, giving a total margin of 13%. The simple average of 40% and 10% is 25%, but incorrectly gives each product the same weight.
In Excel use =SUM(D2:D3)/SUM(B2:B3). For more rows, extend both ranges consistently.
Total gross margin = Total gross profit / Total revenue 1,300 / 10,000 = 13%
Turn the result into a business question
Product B contributes most of the revenue and more absolute gross profit than A despite its lower margin. Do not remove it based only on the percentage.
Compare periods on the same basis. A margin decline may reflect price, cost, or product mix. The table describes the result; further data is needed to explain the cause.
- Reconcile total revenue to the source report.
- Check duplicates, returns, and discounts.
- Separate commissions and variable costs when analysing contribution.
- Write the observation and next check before recommending an action.
Is it enough to track the margin percentage?
No. Read revenue, absolute profit, margin, and volume together. For decisions, add inventory and the costs relevant to your business model.
Apply the reasoning in practice.
Start with the free lesson, or discuss a one-to-one session on this topic using fictional examples.
Need the report built for you?
If you need a deliverable, we can discuss a commercial analysis project separately from coaching.
Explore analysis services and examples →