Blog · How-to guides · Sales teams
Use a synthetic sales order table to check revenue, cost and gross margin in Excel. Work the same rows by region, change one selling price and reconcile the results before using a business export.
Sample sales data in Excel lets you check revenue, gross profit and regional comparisons before applying the same method to a company export. The synthetic US order table below produces $6,860 in revenue and $2,386 in gross profit, a 34.8% gross margin. A second version changes one selling price so you can test whether the results move correctly.
These are invented business records for spreadsheet practice. They contain no customer information, and the table is the complete example rather than a promised download. For practice with a different business file, use the neighboring sample Excel data for analysis guide.
A fictional US office-supply distributor has the following completed orders. Each order contains one item, so each row is both an order and an order line. All sales are in USD; the example excludes sales tax and assumes no shipping charges, discounts or returns.
Put the headers in A1 through F1 and the records in rows 2 through 7. Enter dates as actual spreadsheet dates and display them in US month/day/year format. The numbers belong in numeric cells, without typed currency labels.
| Order ID | Order date | Region | Units | Unit price (USD) | Unit cost (USD) |
|---|---|---|---|---|---|
| S-101 | 09/12/2026 | East | 10 | 120 | 78 |
| S-102 | 09/15/2026 | West | 8 | 150 | 90 |
| S-103 | 09/16/2026 | Central | 12 | 80 | 52 |
| S-104 | 09/17/2026 | East | 5 | 200 | 140 |
| S-105 | 09/18/2026 | West | 20 | 50 | 30 |
| S-106 | 09/19/2026 | Central | 6 | 250 | 175 |
The unit cost is the cost assigned to the sold item for this example. A real export needs an agreed cost definition and the same period as the sale. The separate gross profit margin guide explains that cost boundary in more detail.
You can format these records as an Excel table. Microsoft's table documentation describes headers, filtering and calculated columns. Give the table clear field names, and keep grand totals outside its transaction records.
Add G for Revenue, H for COGS, I for Gross profit and J for Gross margin. Enter the following formulas in the indicated cells, then fill down through row 7. Type only the part beginning with the equals sign.
G2 =D2*E2
H2 =D2*F2
I2 =G2-H2
J2 =IF(G2=0,"",I2/G2)
Each result follows directly from the input table. Display currency to two decimals when needed and percentages to one decimal place; retain unrounded values in the calculations.
| Order ID | Revenue (USD) | COGS (USD) | Gross profit (USD) | Gross margin |
|---|---|---|---|---|
| S-101 | 1,200 | 780 | 420 | 35.0% |
| S-102 | 1,200 | 720 | 480 | 40.0% |
| S-103 | 960 | 624 | 336 | 35.0% |
| S-104 | 1,000 | 700 | 300 | 30.0% |
| S-105 | 1,000 | 600 | 400 | 40.0% |
| S-106 | 1,500 | 1,050 | 450 | 30.0% |
| Total | 6,860 | 4,474 | 2,386 | 34.8% |
For S-101, 10 × 120 = $1,200 revenue and 10 × 78 = $780 COGS. Subtracting gives $420 gross profit. At company level, 6,860 - 4,474 = $2,386, and 2,386 / 6,860 = 34.8% after rounding.
The total margin formula is:
=SUM(I2:I7)/SUM(G2:G7)
Make a separate summary with region names in L2 through L4. Put regional revenue in M, COGS in N, gross profit in O and margin in P. Microsoft documents SUMIF for adding values whose corresponding rows meet a specified condition:
M2 =SUMIF($C$2:$C$7,L2,$G$2:$G$7)
N2 =SUMIF($C$2:$C$7,L2,$H$2:$H$7)
O2 =M2-N2
P2 =IF(M2=0,"",O2/M2)
Fill the formulas down for the region labels. The pivot table guide covers another way to summarize the same sales rows.
| Region | Revenue (USD) | COGS (USD) | Gross profit (USD) | Gross margin |
|---|---|---|---|---|
| East | 2,200 | 1,480 | 720 | 32.7% |
| West | 2,200 | 1,320 | 880 | 40.0% |
| Central | 2,460 | 1,674 | 786 | 32.0% |
| Total | 6,860 | 4,474 | 2,386 | 34.8% |
West and East have equal revenue, but West contributes more gross profit because the underlying orders have different cost proportions. Central leads revenue. These are observations about the supplied rows; the table does not establish a territory's long-term performance.
Check that summed regional revenue minus summed order revenue equals zero. Repeat for COGS and gross profit. Finally, prove revenue equals COGS plus gross profit: 6,860 = 4,474 + 2,386. All checks should pass before you create a management chart.
Keep every input unchanged except S-106's unit selling price: reduce it from $250 to $225. Its quantity remains 6 and unit cost remains $175. This changes revenue by 6 × (225 - 250) = -$150, while COGS stays unchanged.
| Measure | Original (USD) | Revised (USD) | Change (USD) |
|---|---|---|---|
| S-106 revenue | 1,500 | 1,350 | -150 |
| S-106 COGS | 1,050 | 1,050 | 0 |
| S-106 gross profit | 450 | 300 | -150 |
| Company revenue | 6,860 | 6,710 | -150 |
| Company COGS | 4,474 | 4,474 | 0 |
| Company gross profit | 2,386 | 2,236 | -150 |
The revised company margin is 2,236 / 6,710 = 33.3%, rounded to one decimal place. If your workbook changes unit cost, order quantity or another region's revenue, inspect the references. The data comparison in Excel guide covers comparing two supplied versions of a business file.
Covirage is not affiliated with Microsoft.
Bring a sample of your own order export with quantity, sales value, cost and region columns. Covirage maps the columns, its tools compute and check the figures, and the external AI model explains the results with every figure traced to its rows. Create a free Covirage account and bring your file.
See Covirage for sales teams for the supporting team context.
Use an order identifier, order date, region, quantity, unit selling price and unit cost. Add calculated revenue, cost of goods sold and gross profit. For a larger practice table, include product and order-line identifiers so you can distinguish separate items within one order.
Yes. The synthetic input rows are shown in the article, along with formulas and expected totals. Copy the values into a worksheet and calculate the results yourself. This article provides a worked table rather than a downloadable workbook.
Orders have different revenue amounts. Averaging their margin percentages gives a small sale the same influence as a large sale. Divide the region's total gross profit by its total revenue so each order contributes according to its sales value.
Map each export column to the same business meaning, confirm the row represents an order or order line, and establish the reporting period. Check discounts, returns and cost definitions before comparing totals. Reconcile the completed workbook to an approved sales report.