PREVENTS €380K IN WRITE OFFS INVENTORY SQL EXCEL

Batch Expiry Risk Manager

SQL + Excel model that extracts batch level expiry data from ERP, calculates days to expiry, applies three tier risk classification (Critical / Warning / Monitor), and generates actionable disposal, markdown, and diversion recommendations per batch surfacing alerts before write off becomes unavoidable.

Project Overview
⚑ Problem

Expiry Discovered Too Late

Batch expiry dates exist in the ERP/WMS but are never surfaced proactively. Stock nearing expiry is typically discovered during a periodic warehouse walk by which point markdown or diversion windows have closed and write off is the only option. The result: recurring quarterly write offs that hit COGS with no early warning.

⚙ Solution

SQL + Excel Batch Risk Model

A scheduled SQL query extracts all batch records with shelf life <90 days, computes Days to Expiry (DTE), and feeds into an Excel risk model that applies traffic light tiering (Critical <30d, Warning 30 60d, Monitor 60 90d). Each batch receives a recommended action (Use Now / Markdown / Divert / Write Off Plan) with estimated recovery value.

✓ Findings

€380K Write Off Risk Identified

52 batches at risk across 6 categories. €92K in Critical tier (≤30 days, immediate action). €188K in Warning tier (actionable with markdown/diversion). Estimated recovery through proactive action: €267K of the €380K at risk a 70% save rate. FEFO enforcement gaps in Dairy and Pharma categories are the primary root cause.

Critical Expiry Alerts

Batches Requiring Immediate Action (≤30 Days)

batches

Batch Expiry Timeline Days to Expiry (Gantt View, All Tiers)

Critical ≤30d
Warning 31 60d
Monitor 61 90d
Safe >90d
Dataset Explorer
CATEGORY:
RISK TIER:
SITE:
Expiry Risk Analysis

Write Off Exposure by Category & Tier (€K)

Recovery vs Write Off Risk Bubble by Quantity

Recommended Action Distribution

DTE Distribution Batches by Tier

Value at Risk by Site

FEFO Compliance Rate by Category

Batch Register
BATCH IDSKUPRODUCTCATEGORYSITE QTY (UNITS)VALUE (€)MFG DATEEXPIRY DATE DTE (DAYS)RISK TIERACTION RECOVERY (€)WRITE OFF RISK (€)
90 Day Write Off Exposure Forecast

Rolling Write Off Exposure Next 90 Days by Category

Company Advice

💡 Recommendations for Inventory & Warehouse Teams

Key Takeaway: Every euro of batch write off represents a compound failure a forecasting miss, a reorder error, and a FEFO enforcement gap all undiscovered until too late. Prevention starts upstream; the expiry tracker just makes the damage visible before it becomes permanent.