Excel for Supply Chain: 10 Formulas Every Analyst Uses, With Exercises
Most supply chain analysis is still done in Excel. Ten formulas cover the large majority of it. Build the small table below, type each formula and check your result against the answer.
Want to be tested on real extracts? Play Supply Chain's Analytics Lab gives you raw data, questions and a score. Create a free account to start the path. The first five challenges are free.
The practice table
Type this into cells A1 to E9.
| Row | A: Order | B: Customer | C: SKU | D: Qty | E: Price |
|---|---|---|---|---|---|
| 2 | 1001 | Alfa | A10 | 40 | 12.50 |
| 3 | 1002 | Beta | B20 | 15 | 30.00 |
| 4 | 1003 | Alfa | B20 | 10 | 30.00 |
| 5 | 1004 | Gamma | A10 | 25 | 12.50 |
| 6 | 1005 | Beta | C30 | 60 | 4.00 |
| 7 | 1006 | Alfa | A10 | 35 | 12.50 |
| 8 | 1007 | Gamma | C30 | 90 | 4.00 |
| 9 | 1008 | Beta | A10 | 20 | 12.50 |
Type A10 into cell H2 and Alfa into cell H3. Then add a small item table in J1 to L4:
| Row | J: SKU | K: Pack size | L: Lead time (days) |
|---|---|---|---|
| 2 | A10 | 12 | 10 |
| 3 | B20 | 6 | 15 |
| 4 | C30 | 24 | 5 |
The ten formulas
1. SUMIFS: add up with a condition.
How many units of A10 were ordered?
=SUMIFS(D2:D9,C2:C9,H2) gives 120.
2. COUNTIFS: count with a condition.
How many orders did Alfa place?
=COUNTIFS(B2:B9,H3) gives 3.
3. SUMPRODUCT: multiply two columns and add up.
What is the total order value?
=SUMPRODUCT(D2:D9,E2:E9) gives 2,850.
For Alfa only: =SUMPRODUCT((B2:B9=H3)*D2:D9*E2:E9) gives 1,237.50.
4. XLOOKUP: fetch a value from another table.
What is the pack size of the SKU in C2?
=XLOOKUP(C2,J2:J4,K2:K4) gives 12.
In older versions of Excel use =INDEX(K2:K4,MATCH(C2,J2:J4,0)).
5. IF: make a decision.
Stock is in N2 and the reorder point in O2. Type this formula:
=IF(N2<=O2,"Order","OK")
With 500 in N2 and 560 in O2 it shows Order.
6. AVERAGEIFS and STDEV.S: average and spread.
Average order quantity for A10: =AVERAGEIFS(D2:D9,C2:C9,H2) gives 30.
Standard deviation of those four quantities (Excel 365): =STDEV.S(FILTER(D2:D9,C2:C9=H2)) gives 9.13.
7. NORM.S.INV: the z-value for a service level.
=NORM.S.INV(0.95) gives 1.645.
Safety stock for a lead time of 4 periods: =NORM.S.INV(0.95)*9.13*SQRT(4) gives 30.03.
The method is in Safety Stock Formula.
8. ROUNDUP and CEILING: round to whole units and full packs.
=ROUNDUP(30.03,0) gives 31 units.
Rounded up to full packs of 12: =CEILING(31,12) gives 36.
9. WORKDAY: add working days to a date.
An order placed on Monday 2 November 2026 with a lead time of 10 working days:
=WORKDAY(DATE(2026,11,2),10) gives 16 November 2026.
NETWORKDAYS counts the working days between two dates.
10. FORECAST.LINEAR: extend a trend.
Type months 1 to 4 in Q2 to Q5 and demand 100, 110, 120, 130 in R2 to R5.
=FORECAST.LINEAR(5,R2:R5,Q2:Q5) gives 140.
And one tool: the pivot table
Select the order table, choose Insert, then PivotTable. Put Customer in rows, SKU in columns and Qty in values. In ten seconds you have the quantity per customer and item, with totals. Most "can you quickly tell me" questions are answered by a pivot table. Learn it before any formula on this list.
Three habits that make a spreadsheet trustworthy
- One row per record, one column per field. No merged cells, no totals in the middle of the data.
- Never type a number into a formula when it could sit in a labelled cell. The service level 0.95 belongs in its own cell.
- Check every result with a second method. A SUMIFS total should equal the pivot table total.
Questions people ask
Is Excel enough for a supply chain analyst job?
For many entry-level roles, yes, together with an ERP system. SQL and a reporting tool such as Power BI come next. See Supply Chain Analyst: What the Job Is.
XLOOKUP or VLOOKUP?
XLOOKUP where it is available. It looks in any direction and does not break when a column is inserted.
How do I show Excel skills on a resume?
Name the task and the result: "Built a reorder point model for 300 items using SUMIFS and NORM.S.INV." See Supply Chain Skills for a Resume.
Practise it
In the Analytics Lab you get a client's extract and two or three questions, build the columns and pivots you need, and lock one answer per question: how it works. The Data Detective engine does the same with SQL: how it works. Both sit in Premium, further along the path. The path starts with five free challenges: create a free account.
Related reading
Don't just read about supply chains. Play them.
- The first 5 challenges are free, with the same game engines and debriefs as Premium
- Your stars and your level are saved to your profile
- No credit card, no spam
More in Analytics
- Supply Chain KPI Practice: Eight Calculations From One Small Dataset
- Supply Chain Analyst: What the Job Is, Skills, Tools and How to Become One
- How to Calculate Cost to Serve: The Formula and a Worked Example With Numbers
- B2B Cost to Serve Explained: Why Big Accounts Are Not Always the Most Profitable Customers
- B2C Cost to Serve Explained: How E-Commerce Fulfillment Complexity Can Destroy Margin
- Cost to Serve Explained: How to Measure Profitability Across the Supply Chain
- Cycle Service Level Explained: Definition, Formula, and Why It Matters
- Fill Rate Explained: How to Measure Service Level That Customers Actually Feel