22.11 Inventory and Supply Chain
Planners ask days of cover and how many days the SKU was stocked out. A high on-hand number feels safe and is often cash stuck in the godown. Module 21.3 is the project brief.
| KPI | What the number means | Who uses it | Action it drives |
|---|---|---|---|
| Days of cover | On hand divided by average daily sales. Here, daily sales are the 30-day quantity divided by 30. | Planner | Cover under 15 days: raise a PO. Cover over 90 days: stop the next PO. |
| Stockout rate | Stockout days divided by days in the window (30). | Planner, store lead | A stockout is lost sales. On-hand today does not show last week's empty shelf. |
| On hand | Units in the godown today. | Only with cover | A large on-hand of a slow SKU is not a healthy warehouse. |
About this data: The KPIs in this Inventory and Supply Chain lesson are worked out from a fictional grocery stockist that holds six SKUs in godowns in Pune, Nashik, Kolhapur and Nagpur. The figures are made up for this lesson and do not come from any real company or person.
Fictional sample rows. A snapshot, plus the last 30 days of sales. Do not add these on-hand numbers across seven dates (Module 21.3). Type these rows into a new sheet from cell A1, press Ctrl + T, and name the table tblStock (Table Design › Table Name).
| SKU | City | On hand | Sold in 30 days | Stockout days |
|---|---|---|---|---|
| Atta | Pune | 300 | 300 | 0 |
| Oil | Pune | 600 | 150 | 0 |
| Rice | Nashik | 40 | 120 | 6 |
| Dal | Nashik | 90 | 90 | 0 |
| Sugar | Kolhapur | 20 | 60 | 10 |
| Tea | Nagpur | 200 | 50 | 0 |
About this data: The tblStock table has one row per SKU and the columns SKU, City, On hand, Sold in 30 days and Stockout days. The figures are made up for this lesson and do not come from any real company or person.
Excel formulas for the whole file (type them in empty cells below or beside the table):
| KPI | Excel formula | Result | Number format |
|---|---|---|---|
| Days of cover | =SUM(tblStock[On hand])/(SUM(tblStock[Sold in 30 days])/30) |
48.7 days | 0.0 |
| Stockout rate | =SUM(tblStock[Stockout days])/(ROWS(tblStock)*30) |
8.9% | 0.0% |
About this data: Each formula above reads whole columns of the tblStock table. Every column holds stock units and days, so no currency format is needed. The figures are made up for this lesson and do not come from any real company or person.
Calculated columns (one result per row). Click the first empty column of the table, type the header, then the formula. The Table fills every row by itself.
| New column | Formula in the first row |
|---|---|
| Days of cover | =[@[On hand]]/([@[Sold in 30 days]]/30) |
| Stockout rate | =[@[Stockout days]]/30 |
About this data: The calculated columns use the same six fictional rows of the tblStock table, so you can change any number and watch each row's result update. The figures are made up for this lesson and do not come from any real company or person.
Expected result per row:
| SKU | Days of cover | Stockout rate |
|---|---|---|
| Atta | 30.0 days | 0.0% |
| Oil | 120.0 days | 0.0% |
| Rice | 10.0 days | 20.0% |
| Dal | 30.0 days | 0.0% |
| Sugar | 10.0 days | 33.3% |
| Tea | 120.0 days | 0.0% |
About this data: These results are worked out from the six fictional SKUs in the tblStock table above. They do not describe any real company or person.
One city with SUMIFS. Days of cover for Pune only:
=SUMIFS(tblStock[On hand],tblStock[City],"Pune")/(SUMIFS(tblStock[Sold in 30 days],tblStock[City],"Pune")/30)
Result for Pune: 60.0 days. Change "Pune" to a cell reference (for example $K$1) and add a drop-down, and the same formula answers for any city.
| Good KPI | Vanity metric | |
|---|---|---|
| From the same rows | Rice cover 10 days, oil cover 120 days | Oil on hand 600, the biggest pile |
| Why | Rice will run out. Oil will sit for four months. | A "stock health" card that sorts by on-hand puts oil first and rice last. That is the wrong purchase order. |
About this data: The good KPI and the vanity metric both come from the same fictional rows of the tblStock table, so the comparison is fair. The figures are made up for this lesson and do not come from any real company or person.
What the manager does. The Nashik planner raises a rice order this week and does not touch dal (cover 90 ÷ (90 ÷ 30) = 30 days). The Pune planner cancels or delays the next oil purchase. Atta in Pune is 300 ÷ (300 ÷ 30) = 30 days, which is the planned cover in this file. Leave it. Kolhapur sugar is also 10 days of cover and was stocked out 10 of 30 days. Same action as Nashik rice.
Ravindra Bagale's Tip
Never SUM on-hand stock across several snapshot dates. Take the latest date only, then calculate days of cover.
Ravindra Bagale's Tip – मराठी
अनेक snapshot dates चा on-hand stock कधीच SUM करू नका. फक्त शेवटची date घ्या, मग days of cover काढा.
Ravindra Bagale's Tip – हिंदी
कई snapshot dates का on-hand stock कभी SUM न करें. सिर्फ़ आख़िरी date लें, फिर days of cover निकालें.
Practice tasks (6)
Use the tblStock table from this lesson (6 fictional rows). Open a hint only if you are stuck, and check your result against the answer.
1. Write one formula that works out Stockout rate for the whole tblStock table, and give it the number format 0.0%.
Hint: Read whole columns of the Table by name, such as tblStock[On hand], so new rows are included.
Answer: =SUM(tblStock[Stockout days])/(ROWS(tblStock)*30) gives 8.9%.
2. Work out Stockout rate for Pune only.
Hint: Replace each SUM with SUMIFS and add the condition tblStock[City] = "Pune".
Answer: =SUMIFS(tblStock[Stockout days],tblStock[City],"Pune")/(COUNTIFS(tblStock[City],"Pune")*30) gives 0.0%.
3. Add a calculated column Stockout rate to the Table. Which SKU has the highest Stockout rate?
Hint: Type the header in the first empty column, then the formula using [@column] references. The Table fills every row.
Answer: Sugar, with 33.3%.
4. Which SKU has the lowest Days of cover?
Hint: Add Days of cover as a calculated column, then sort that column from smallest to largest.
Answer: Rice, Sugar, all with 10.0 days.
5. What if On hand for Rice changes from 40 to 48? Work out the new whole-table Days of cover.
Hint: Type the new value in the Table. Formulas that read whole columns update by themselves.
Answer: Days of cover changes from 48.7 days to 49.0 days.
6. How many SKUs have Stockout rate above the whole-table Stockout rate?
Hint: Compare each row of the Stockout rate column with the whole-table result, 8.9%.
Answer: 2: Rice, Sugar.
Loading practice tasks...
- Total On hand (Easy): Add up the "On hand" column to get one total for all six SKUs.
- Average Sold in 30 days (Easy): Work out the average of the "Sold in 30 days" column across the six SKUs. Round the answer to 2 decimal places.
- SKUs in Pune (Easy): Count how many rows have "Pune" in the "City" column.
- Largest Stockout days (Easy): Find the largest value in the "Stockout days" column.
- On hand for Pune (Medium): Add up the "On hand" column only for the rows where "City" is "Pune".
- Days of cover for all SKUs (Medium): Work out the Days of cover for all six SKUs. It is the total of "On hand" divided by (the total of "Sold in 30 days" divided by 30). Round the answer to 2 decimal places.
- Look up Dal (Medium): Find the "Sold in 30 days" value for SKU "Dal".
- Largest Sold in 30 days in Pune (Medium): Find the largest "Sold in 30 days" value among the rows where "City" is "Pune".
- Days of cover for Atta (Medium): Work out the Days of cover for SKU "Atta", using only the values in that one row.
- Stockout rate for all SKUs (Hard): Work out the Stockout rate for all six SKUs. It is the total of "Stockout days" divided by (the number of rows times 30). Round the answer to 3 decimal places, so 0.125 means 12.5%.
- Days of cover for Pune (Hard): Work out the Days of cover only for the rows where "City" is "Pune".
- Above or below average (Hard): Show "Above" if the "Stockout days" value for SKU "Atta" is more than the average of the "Stockout days" column, and show "Below" if it is not.