Aggregate amounts before calculating an aggregate ratio
For ProductA,100 units at price20 and cost12 give Revenue2,000, Cost1,200 and Gross800. Margin is800/2,000=40%. ProductB has900 units at price10 and cost9, giving Revenue9,000, Cost8,100 and Gross900, a10% margin. The combined result is Revenue11,000, Cost9,300 and Gross1,700.
The overall margin is1,700/11,000, approximately15.45%. Averaging the two product margins gives25%, which answers an equal-product-weight question rather than the revenue-weighted business question. The correct weights are the relevant revenue shares. A row-level average can introduce still another weighting scheme if products have different numbers of lines.
Markup uses a different denominator. ProductA's800 gross relative to1,200 cost is66.67%, while its margin is40%. Naming the denominator is part of the result. These are simplified gross measures under the supplied costs, not complete operating profit or a recommendation about actual pricing.
A conditional sum needs matching ranges and explicit criteria
For the table named Sales, =SUMIFS(Sales[Revenue],Sales[Region],"North") adds the North revenue. With this case it is1,200+4,000=5,200. =SUMIFS(Sales[Gross],Sales[Region],"North") yields880. The corresponding South amounts are5,800 and820. Calculate each regional margin by dividing its total gross by its total revenue.
SUMIFS applies the supplied criteria together to corresponding rows. The sum range and criteria ranges need the appropriate matched shape and meaning. A formula referring to a different-length or shifted range is not a valid way to associate a region with its amount. Check categories, types and the intended period before trusting a conditional result.
The formulas here assume all four January rows are in scope. A visible worksheet filter is not automatically a criterion written into an ordinary SUMIFS expression. If a report is meant to cover only one month or status, encode and test that condition explicitly rather than relying on what happens to be visible on the screen.
Build and validate a pivot report
Select the Sales table and, in a supported Excel desktop version, choose Insert PivotTable and place it on a new sheet. Put Region in Rows and Revenue, Cost and Gross in Values, each summarized as Sum. Compare the result with the conditional-sum calculation. If a numeric field is summarized as Count, inspect its data types and chosen aggregation; a count of observations is not revenue.
For a second report, put Product in Rows and sum the same amounts. Obtain overall margin from aggregate Gross divided by aggregate Revenue, not the unweighted average of row Margin. A calculated measure or formula must preserve the intended denominator. The official pivot reading describes current platform-specific choices; the model's reconciliation is the acceptance test for the report.
A pivot report can retain an earlier view until refreshed. If rows are added to the table, confirm the source range and refresh the report. Do not mistake a stale report for evidence that the new transactions had no effect. A fixed plain range may exclude new rows even after refresh, so source scope matters as well as the refresh operation.
Use an added row to expose stale or incomplete summaries
Add a separate optional February record R005, dated2026-02-28, RegionNorth, ProductA, Units20, Price20, UnitCost12. It adds400 Revenue,240 Cost and160 Gross. An all-period report should now show11,400 Revenue,9,540 Cost and1,860 Gross, approximately16.32% overall margin. A January-only report should remain at11,000 and1,700, with its period criterion explicit.
These two outputs are both legitimate when correctly labeled. The error is to compare them as if their scopes were identical or to refresh one report but not the other. Document the source, filters, as-of date and calculation definition beside the result.
Reconcile the sum of regional and product groups to the same grand total and investigate unmatched or missing categories. A graph built from a wrong or stale summary does not repair the underlying calculation. The next units connect these measurement distinctions to cash models, scenarios and communication.
Worked example: Correct overall margin and the tempting wrong average
A:800/2,000=40%; B:900/9,000=10%. Business margin=(800+900)/(2,000+9,000)=17/110≈15.45%, not(40%+10%)/2=25%. Revenue weights explain the difference.
Worked example: Reconcile a new period
R005 adds400 Revenue and160 Gross. All-period totals become11,400 Revenue and1,860 Gross; January-only totals stay11,000 and1,700. Check source scope, criteria and refresh state before deciding which report is wrong.