Calculate a replenishment quantity
Bring available stock and confirmed incoming stock up to your target level.
Enter 18 units on the shelf in B2, 12 units on order in C2 and a target of 50 in D2.
=MAX(0,D2-B2-C2)Subtract both stock sources from the target. MAX keeps the order quantity at zero if stock is already sufficient.
Result 20 units
Compare gross margins
Find the share of the selling price left after the product cost.
Enter a selling price of 80 in B2 and a product cost of 52 in C2, on the same tax basis.
=IF(B2=0,"No price",(B2-C2)/B2)Gross profit per unit is 28. Divide by the selling price and format the result as Percentage.
Result 35%
Add up a customer basket
Price a basket with multiple quantities and unit prices.
Enter quantities 2, 1, 3 in B2:B4 and unit prices 4, 8, 2 in C2:C4.
=SUMPRODUCT(B2:B4,C2:C4)Multiply each item quantity by its own price, then add the three line totals.
Result 22 before tax or discounts
Inventory Management in Excel (In Out Balance Track with Auto Re Order)
How to Calculate Gross Profit and Margin Percentage in Excel
How to calculate total price for products in MS Excel 2019 | Sumproduct formula
Practice workspace
Calculate a replenishment quantity
Calculate how many more units to order to reach the target. Return zero when available and incoming stock already cover it.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | ||||
| 2 |
Show example formula
=MAX(0,D2-B2-C2) Compare gross margins
Calculate gross profit as a share of the selling price. Show “No price” if the price is zero.
| A | B | C | |
|---|---|---|---|
| 1 | |||
| 2 |
Show example formula
=IF(B2=0,"No price",(B2-C2)/B2) Add up a customer basket
Price a basket with multiple quantities and unit prices.
| A | B | C | |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| 4 |
Show example formula
=SUMPRODUCT(B2:B4,C2:C4) Lesson quiz
Answer three questions to see your level in this lesson.
