27.2 E-commerce: Gross Sales, Returns and Net Sales
Example first. Priyanka Shinde sells online through a fictional MarketRush storefront and wants to see how much of the gross sales is lost to returns.
E-commerce project — in 30 seconds
What: A E-commerce tracker: one Table tblOrders, the calculated column Amount, KPI cells, a PivotTable by City, a chart and a one-page dashboard.
Why: This is the shape of a real E-commerce report: Gross Sales, Return %, Net Sales are the numbers a manager reads first.
Tiny example: From 6 rows: Gross Sales = ₹8,140, Return % = 33.3%, Net Sales = ₹4,543.
E-commerce project — 30 सेकंदात
काय: E-commerce चा tracker: tblOrders नावाची एक Table, Amount हा calculated column, KPI cells, City प्रमाणे PivotTable, एक chart आणि एका पानाचा dashboard.
का: खऱ्या E-commerce report चा हाच आकार असतो: Gross Sales, Return %, Net Sales हे आकडे manager सगळ्यात आधी वाचतो.
छोटं उदाहरण: 6 rows मधून Gross Sales = ₹8,140, Return % = 33.3%, Net Sales = ₹4,543.
E-commerce project — 30 सेकंड में
क्या: E-commerce का tracker: tblOrders नाम की एक Table, Amount calculated column, KPI cells, City के हिसाब से PivotTable, एक chart और एक पन्ने का dashboard.
क्यों: असली E-commerce report का यही आकार होता है: Gross Sales, Return %, Net Sales वे आँकड़े हैं जो manager सबसे पहले पढ़ता है.
छोटा उदाहरण: 6 rows से Gross Sales = ₹8,140, Return % = 33.3%, Net Sales = ₹4,543.
First look at the data (before → after):
Expected result — Calculated column
| OrderID | Amount |
|---|---|
| AMN-6001 | ₹1,499 |
| AMN-6002 | ₹1,398 |
| AMN-6003 | ₹1,047 |
| AMN-6004 | ₹899 |
| AMN-6005 | ₹2,199 |
| AMN-6006 | ₹1,098 |
About this data: Teaching sample for a fictional shop “GreenField Dairy”. Figures and names (e.g. Aamir Khan) are made up for this lesson on e commerce gross sales returns and net sales.
Expected result — KPI cells (expected results)
| KPI | Formula | Result |
|---|---|---|
| Gross Sales | =SUM(tblOrders[Amount]) | ₹8,140 |
| Return % | =COUNTIF(tblOrders[Status],"Returned")/ROWS(tblOrders[Status]) | 33.3% |
| Net Sales | =SUMIFS(tblOrders[Amount],tblOrders[Status],"Delivered") | ₹4,543 |
About this data: Demo table only — not real customer or company data. Built to practise e commerce gross sales returns and net sales.
Before table and formula as text
Before — Table tblOrders (fictional sample rows)
| OrderID | City | Category | Qty | Price | Status |
|---|---|---|---|---|---|
| AMN-6001 | Pune | Electronics | 1 | 1,499 | Delivered |
| AMN-6002 | Kolhapur | Fashion | 2 | 699 | Returned |
| AMN-6003 | Pune | Home | 3 | 349 | Delivered |
| AMN-6004 | Sambhaji Nagar | Fashion | 1 | 899 | Delivered |
| AMN-6005 | Nashik | Electronics | 1 | 2,199 | Returned |
| AMN-6006 | Kolhapur | Home | 2 | 549 | Delivered |
About this data: Made-up rows so you can copy the pattern for e commerce gross sales returns and net sales. Currencies may use ₹, £, € or $.
Formula / click path
Amount: =[@Qty]*[@Price]
Gross Sales: =SUM(tblOrders[Amount])
Return %: =COUNTIF(tblOrders[Status],"Returned")/ROWS(tblOrders[Status])
Net Sales: =SUMIFS(tblOrders[Amount],tblOrders[Status],"Delivered")
Do it step by step:
- Type the data and press Ctrl+T; name the Table
tblOrdersin Table Design › Properties › Table Name. - Add the column Amount with
=[@Qty]*[@Price]; the Table fills it down. - On a KPI sheet type
=SUM(tblOrders[Amount])and the other KPI formulas from the table below. - Click Insert › PivotTable › From Table/Range, put City in Rows and Amount in Values (Sum).
- Click PivotTable Analyze › PivotChart › Clustered Bar, then PivotTable Analyze › Insert Slicer › Category.
- Move the KPI cells, the chart and the slicer onto a sheet named Dashboard.
स्टेप बाय स्टेप करून बघा:
- Data type करा आणि Ctrl+T दाबा; Table Design › Properties › Table Name मध्ये Table ला
tblOrdersनाव द्या. - Amount column
=[@Qty]*[@Price]ने जोडा; Table तो खाली भरते. - KPI sheet वर
=SUM(tblOrders[Amount])आणि खालच्या table मधले बाकीचे KPI formulas type करा. - Insert › PivotTable › From Table/Range वर click करा, Rows मध्ये City आणि Values मध्ये Amount (Sum) ठेवा.
- PivotTable Analyze › PivotChart › Clustered Bar वर click करा, मग PivotTable Analyze › Insert Slicer › Category.
- KPI cells, chart आणि slicer Dashboard नावाच्या sheet वर हलवा.
स्टेप बाय स्टेप करके देखें:
- Data type करें और Ctrl+T दबाएँ; Table Design › Properties › Table Name में Table को
tblOrdersनाम दें. - Amount column
=[@Qty]*[@Price]से जोड़ें; Table उसे नीचे भर देती है. - KPI sheet पर
=SUM(tblOrders[Amount])और नीचे की table के बाकी KPI formulas type करें. - Insert › PivotTable › From Table/Range पर click करें, Rows में City और Values में Amount (Sum) रखें.
- PivotTable Analyze › PivotChart › Clustered Bar पर click करें, फिर PivotTable Analyze › Insert Slicer › Category.
- KPI cells, chart और slicer को Dashboard नाम की sheet पर ले जाएँ.
The brief. Build an e-commerce sales sheet: Amount per order, gross sales, return % (returned orders ÷ all orders), net sales (delivered only), sales by city, a chart and a Category slicer.
Calculated column formulas:
| Column | Formula |
|---|---|
| Amount | =[@Qty]*[@Price] |
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 |
|---|---|---|
| Gross Sales | =SUM(tblOrders[Amount]) | ₹8,140 |
| Return % | =COUNTIF(tblOrders[Status],"Returned")/ROWS(tblOrders[Status]) | 33.3% |
| Net Sales | =SUMIFS(tblOrders[Amount],tblOrders[Status],"Delivered") | ₹4,543 |
About this data: Teaching sample for a fictional shop “GreenField Dairy”. Figures and names (e.g. Aamir Khan) are made up for this lesson on e commerce gross sales returns and net sales.
PivotTable (expected):
| City | Sum of Amount |
|---|---|
| Kolhapur | ₹2,496 |
| Nashik | ₹2,199 |
| Pune | ₹2,546 |
| Sambhaji Nagar | ₹899 |
| Grand Total | ₹8,140 |
About this data: Demo table only — not real customer or company data. Built to practise e commerce gross sales returns and net sales.
Chart and dashboard (one under the other):
- Click inside the PivotTable, then PivotTable Analyze › PivotChart › Clustered Bar › OK.
- Add a chart title and data labels with Chart Design › Add Chart Element.
- Click PivotTable Analyze › Insert Slicer, tick Category and click OK.
- 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. - Cut and paste the chart and slicer onto the Dashboard sheet.
- 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 Ecommerce_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):
- Which city has the highest sum of Amount?
- Filter the Table on City = Pune (Data › Filter): what is Gross Sales for Pune alone?
- Add the Clustered Bar PivotChart and the Category slicer to your Dashboard sheet.
Answer
Pune (₹2,546). For Pune only (2 rows): Gross Sales = ₹2,546. The chart shows 4 bars, one per city.
Ravindra Bagale's Tip
Show Return % next to the rupee total. A percentage or ratio without the size behind it can make a small city look like a big problem.
Ravindra Bagale's Tip – मराठी
Return % रुपयांच्या total शेजारी दाखवा. मागचा आकार न दाखवता percentage किंवा ratio लहान city ला मोठी समस्या असल्यासारखं दाखवू शकतो.
Ravindra Bagale's Tip – हिंदी
Return % को रुपये के total के पास दिखाएँ. पीछे का आकार दिखाए बिना percentage या ratio छोटी city को बड़ी समस्या जैसा दिखा सकता है.
Loading practice tasks...
- Total orders (Easy): Add up Orders in C2:C11. (sheet "Data")
- Average net (Easy): Average of Net (₹) in F2:F11, rounded to 0 decimals. (sheet "Data")
- App rows (Easy): How many rows have Channel "App"? (sheet "Data")
- Max gross (Easy): Largest Gross (₹) in D2:D11. (sheet "Data")
- Total gross (Easy): Add up Gross (₹) in D2:D11. (sheet "Data")
- App gross (Medium): Total of Gross (₹) where Channel is "App". (sheet "Data")
- Total returns (Medium): Add up Returns (₹) in E2:E11. (sheet "Data")
- Returns over 200000 (Medium): How many rows have Returns (₹) > 200000? (sheet "Data")
- Net of Marketplace (Medium): Net (₹) for Channel "Marketplace" first match. (sheet "Data")
- Net / Gross (Hard): Total net / total gross, 3 decimals. (sheet "Data")
- Total net (Hard): Add up Net (₹) in F2:F11. (sheet "Data")
- Above avg gross? (Hard): "High" if D2 > average gross else "OK". (sheet "Data")