1. Create unique inventory IDs for each ingredient
| Ingredient | Supplier | Unit | Qty | Expiry |
| Flour | Miller's | kg | 25 | 2026-12-15 |
| Tomato Sauce | RedBrand | L | 12 | 2026-10-20 |
| Olive Oil | PureOil | L | 8 | 2027-03-10 |
| Basil | Fresh Herbs Co | bunch | 30 | 2026-09-22 |
| Mozzarella | DairyFresh | kg | 15 | 2026-09-25 |
=SEQUENCE(COUNTA(A2:A6))
Result: [[1],[2],[3],[4],[5]]
COUNTA counts the 5 ingredient rows (A2:A6), and SEQUENCE generates one ID per ingredient, starting at 1 with a step of 1. The result is a 5×1 array of sequential reference numbers for inventory tracking.
2. Build a 5-week stock forecast table
| Ingredient | Week 1 | Week 2 | Week 3 | Week 4 | Week 5 |
| Flour | | | | | |
| Tomato Sauce | | | | | |
| Olive Oil | | | | | |
| Basil | | | | | |
| Mozzarella | | | | | |
=SEQUENCE(5,5)
Result: [[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15],[16,17,18,19,20],[21,22,23,24,25]]
SEQUENCE creates a 5×5 grid where each row represents an ingredient and columns represent forecast weeks. The sequential numbers (1–25) can serve as unique transaction IDs, forecast period codes, or placeholder multipliers for usage calculations across the planning horizon.
3. Generate reorder quantity thresholds
| Supplier | Small | Medium | Large | Bulk | Mega |
| Miller's | 50 | 75 | 100 | 125 | 150 |
| RedBrand | 50 | 75 | 100 | 125 | 150 |
| PureOil | 50 | 75 | 100 | 125 | 150 |
=SEQUENCE(5,1,50,25)
Result: [[50],[75],[100],[125],[150]]
SEQUENCE starts at 50 and increments by 25 for each tier, generating 5 reorder quantity levels. These thresholds (50, 75, 100, 125, 150 units) represent pricing brackets for suppliers, enabling automatic tier-based cost calculations for ingredient restocking.