ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Tests & careers
  3. Excel for Ecommerce: Orders, Margins and Stock

Excel for Ecommerce: Orders, Margins and Stock

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

Ecommerce teams use Excel to turn order and product exports into daily answers: revenue by channel with SUMIF and SUMIFS, average order value, gross margin per product using XLOOKUP to pull unit costs, week-over-week percent change, and stock checks that flag what to reorder. One clean orders table and one product table cover most of the work.

Key takeaways

  • Keep one orders table and one product table, joined by SKU.
  • SUMIFS totals revenue by channel, product or date range, and COUNTIF counts the orders.
  • Average order value is revenue divided by number of orders, not the average of line items.
  • Gross margin % is (price - cost) / price, with the cost pulled from the product table by XLOOKUP.
  • Flag reorders with IF, and estimate days of stock left by dividing stock by daily sales.
On this page+
  1. What do ecommerce teams use Excel for?
  2. Revenue by channel with SUMIF and SUMIFS
  3. Average order value
  4. Margins: pull unit costs with XLOOKUP
  5. Week-over-week growth with percent change
  6. Stock: reorder flags and days of cover
  7. Clean marketplace and store exports
  8. Practise it

Excel for ecommerce is about answering the same questions every day: how much did each channel sell, what is the average order worth, which products make money and what needs reordering. Store and marketplace platforms export the raw orders, and Excel turns them into answers with a few functions. This guide walks through each task on a small online shop, so you can use it at work or prepare for an ecommerce or online retail Excel test.

What do ecommerce teams use Excel for?#

Ecommerce teams use Excel to combine and summarise exports that the selling platforms don't join up for them. Typical jobs:

  • Sales reporting: revenue and orders by channel, product, day or week.
  • Unit economics: average order value, gross margin and profit per order.
  • Growth tracking: week-over-week and year-over-year percent change.
  • Inventory: stock levels, reorder flags and days of cover.
  • Cleaning exports: trimming spaces, fixing numbers stored as text, matching SKUs between files.

Everything below uses two tables. The orders table has one row per order:

ABCDE
1OrderChannelSKUQtyRevenue
25001WebsiteTS-01250
35002MarketplaceMG-02114
45003WebsiteHD-03145
55004SocialTS-01375
65005WebsiteMG-02456
75006MarketplaceTS-01125
85007WebsiteHD-03290

The Products sheet has one row per SKU:

ABCDE
1SKUProductPriceUnit costStock
2TS-01T-shirt25940
3MG-02Mug14512
4HD-03Hoodie45206

Revenue by channel with SUMIF and SUMIFS#

SUMIF adds the revenue for one channel, and SUMIFS adds it with several conditions. Website revenue:

Excel formula
=SUMIF(B2:B8,"Website",E2:E8)

The result is 241 (50 + 45 + 56 + 90). For Website sales of one product, add a second condition with SUMIFS, which puts the range to add first:

Excel formula
=SUMIFS(E2:E8,B2:B8,"Website",C2:C8,"HD-03")

The result is 135 (45 + 90). With a date column, the same pattern gives revenue for one week: add a pair like A2:A500,">="&H1 for the start date. The SUMIF lesson covers the basics, and the SUMIFS function guide covers every argument. Revenue by channel is the backbone of Excel for sales operations too.

Average order value#

Average order value (AOV) is total revenue divided by the number of orders. For the Website channel:

Excel formula
=SUMIF(B2:B8,"Website",E2:E8)/COUNTIF(B2:B8,"Website")

The result is 60.25 (241 ÷ 4 orders). For the whole shop, =SUM(E2:E8)/COUNTA(A2:A8) gives 355 ÷ 7 = 50.71.

If your export has one row per line item rather than per order, an order with three products appears three times. Count distinct orders first, for example with =COUNTA(UNIQUE(A2:A500)) in Excel 2021 or Microsoft 365, or the AOV will be too low.

Margins: pull unit costs with XLOOKUP#

Gross margin needs the unit cost, which lives in the Products table, so join the two tables with XLOOKUP. The cost of the goods in order 5001:

Excel formula
=D2*XLOOKUP(C2,Products!$A$2:$A$4,Products!$D$2:$D$4)

XLOOKUP finds TS-01 in the SKU column and returns its unit cost, 9. Times 2 units, the result is 18, so the order's gross profit is 50 - 18 = 32. Fill the formula down to cost every order. XLOOKUP needs Excel 2021, Excel 2024 or Microsoft 365; in older versions, use VLOOKUP with FALSE. The XLOOKUP lesson and the XLOOKUP function guide show the full syntax, including a fourth argument like "Unknown SKU" for SKUs that aren't in the product list.

Gross margin % per product is (price - cost) / price:

ProductPriceUnit costMargin %
T-shirt25964.0%
Mug14564.3%
Hoodie452055.6%

On the Products sheet, =(C2-D2)/C2 gives 0.64 for the T-shirt. Format it as a percentage. Don't confuse margin with markup, which divides by cost: the T-shirt's markup is (25 - 9) / 9 = 178%.

Week-over-week growth with percent change#

Percent change compares two periods: (new - old) / old. If last week's revenue in B2 was 4,200 and this week's in C2 is 4,830:

Excel formula
=(C2-B2)/B2

The result is 0.15, or 15%. Always divide by the older period. When last week was 0, the formula returns #DIV/0!, so guard it with =IF(B2=0,"",(C2-B2)/B2). The percentages and % change lesson practises these formulas, including growing a number by a percent for a forecast.

Stock: reorder flags and days of cover#

For a small catalogue, two formulas keep stock under control. On the Products sheet, add a reorder point in column F. For the hoodie in row 4, flag whether to order:

Excel formula
=IF(E4<=F4,"Reorder","OK")

If the hoodie's reorder point in F4 is 10, its stock of 6 returns Reorder. Days of cover estimates how long stock lasts at the current sales rate. If the hoodie sells about 0.5 units a day:

Excel formula
=E4/0.5

That gives 12 days. In a real sheet, put the daily sales rate in its own column, for example units sold in the last 28 days divided by 28, and point the formula at it. Units sold per SKU come straight from the orders table: =SUMIF(C2:C8,"TS-01",D2:D8) returns 6 T-shirts.

Clean marketplace and store exports#

Exports from different platforms rarely match perfectly, so clean them before you join them. Watch for:

  • Extra spaces in SKUs and channel names. =TRIM(C2) removes them, so "TS-01 " matches "TS-01".
  • Numbers stored as text, which SUMIF skips. Convert them with VALUE or Data > Text to Columns.
  • Different SKU formats between files, such as "ts-01" and "TS01". XLOOKUP isn't case-sensitive, but it does see the missing hyphen.
  • Duplicate orders after combining files. Use Data > Remove Duplicates on the order ID.

These cleaning and joining skills overlap with analyst roles; see Excel skills for data analysts and Excel skills for business analysts. For the next level, such as dynamic arrays and PivotTables, read advanced Excel skills for jobs, and see how the same toolkit works for client projects in Excel for consultants.

Practise it#

Start with the exercise on this page, then practise SUMIF in a live spreadsheet, where you type each formula and it is checked instantly. Next, join tables with the XLOOKUP lesson and measure growth with percentages and % change.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

What is the average order value for the Website channel? In H2, divide the Website revenue by the number of Website orders: =SUMIF(B2:B8,"Website",E2:E8)/COUNTIF(B2:B8,"Website").

fx
ABCDEFGHI
1
Order
Channel
SKU
Qty
Revenue
2
5001
Website
TS-01
2
50
Website AOV
3
5002
Marketplace
MG-02
1
14
4
5003
Website
HD-03
1
45
5
5004
Social
TS-01
3
75
6
5005
Website
MG-02
4
56
7
5006
Marketplace
TS-01
1
25
8
5007
Website
HD-03
2
90
9
10
11

Tip: SUMIF adds the Website revenue. COUNTIF counts the Website orders. Divide the first by the second.

Practise this in a lesson

LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.LessonPercentages and % changeCalculate percent change with (new - old) / old, format it as a percentage, and grow a number by a percent.LessonXLOOKUPLook up in any direction with XLOOKUP and show a friendly message when nothing matches.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.Function guideXLOOKUPXLOOKUP explained with real examples: exact matches, looking left and custom not-found messages, plus a live exercise to try now.

Frequently asked questions

What Excel skills do ecommerce jobs need?

+

SUMIF and SUMIFS for revenue by channel or product, COUNTIF for order counts, XLOOKUP to join order and product data, percent change for growth, IF for stock flags, and PivotTables and charts for reporting.

How do I calculate average order value in Excel?

+

Divide total revenue by the number of orders. For one channel, use =SUMIF(B2:B8,"Website",E2:E8)/COUNTIF(B2:B8,"Website").

How do I calculate gross margin in Excel?

+

Use =(price - cost)/price and format as a percentage. For a product selling at 25 that costs 9, =(25-9)/25 returns 64%.

Can Excel track ecommerce inventory?

+

Yes, for a small catalogue. Keep stock, a reorder point and recent sales per SKU, then use IF to flag items at or below the reorder point and divide stock by daily sales for days of cover.

Sources

  • SUMIFS function - Microsoft Support
  • XLOOKUP function - Microsoft Support
  • Calculate percentages - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What do ecommerce teams use Excel for?
  2. Revenue by channel with SUMIF and SUMIFS
  3. Average order value
  4. Margins: pull unit costs with XLOOKUP
  5. Week-over-week growth with percent change
  6. Stock: reorder flags and days of cover
  7. Clean marketplace and store exports
  8. Practise it

Keep reading

Tests & careers· 6 min read

Excel for Business Analysts: Skills and Test Tasks

A business analyst uses Excel to turn raw data into answers: SUMIFS and COUNTIFS for summaries by segment, XLOOKUP to join data from two tables, pivot tables with % of total for quick breakdowns, percent change to show trends, and clear, checkable layouts. Business analyst Excel tests usually give you a dataset and ask several of these questions.

Tests & careers· 6 min read

Excel Skills for Sales and Operations Roles

The key Excel skills for sales and operations roles are totalling revenue by region, rep or product with SUMIF and SUMIFS, calculating percent change and % of total, finding the top order and its rep with MAX and XLOOKUP, totalling by month with date criteria, and flagging stock or targets with IF. Answers should update when data changes.

Tests & careers· 6 min read

Excel for Consultants: The Skills Case Work Needs

Consultants use Excel to turn messy client data into clear answers quickly. The core skills are summarising with PivotTables and SUMIFS, comparing periods with percent change, joining data sets with XLOOKUP, building small scenario models with locked input cells, and checking every total before it reaches a slide. Case-style Excel tests check the same skills under time pressure.

More on tests & careers

  • Excel for Engineers: Calculations, Rounding and Lookups
  • Excel Skills for Finance and Accounting Jobs
  • Excel Skills Every Fresh Graduate Should Have
  • Excel for Healthcare Administration Jobs
  • Excel Skills for Hospitality Jobs: Hotels and Restaurants
  • Excel Skills for HR and Recruiting Jobs
All tests & careers articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free