Rebuilding macro space planning on a modern analytics platform
QuantSpark replaced slow, hard-to-maintain Excel space-planning models with a bespoke Python analytics platform that is now the backbone of macro space decisions across the estate.

Nature of improvement (source reports capability and speed gains, not a single quantified figure)
Weeks-long manual spreadsheet analysis replaced by a repeatable, platform-driven workflow across the full supermarket and convenience estate
- The bespoke platform is now the backbone of macro space decisions at the retailer, spanning both supermarket and convenience store formats.
- Substantially augments the internal team's ability to make strategic and operational space changes across the estate.
- Shortens analysis that previously took weeks, per the source's own description.
- Replacing opaque VBA logic with a documented, testable Python model directly addresses the original challenge of models being difficult to maintain and audit.
The problem
A leading UK supermarket group relied on large Excel VBA models to collect bay-space and sales data across food and non-food ranges, in both supermarket and convenience store formats, and to optimise space allocation against historic sales curves.
Over the years those models had become slow, opaque and difficult to maintain, audit or even run reliably; some individual analyses took weeks to complete, throttling the pace at which the planning team could respond to store-level or seasonal change.
This pattern is common across large retail estates: spreadsheet tools built as tactical fixes accumulate hidden logic across successive owners, becoming a bottleneck rather than an accelerant once no one outside the original author can confidently explain, audit or safely modify the model.
How we delivered it
Stabilise the incumbent tools
Working alongside the retailer's own data science and engineering teams, QuantSpark optimised the existing Excel models for speed, interface and the accuracy of their recommendations, giving planners an immediately more usable tool while the deeper rebuild was underway.
Refine the modelling logic
Reworked the underlying logic so recommendations reflected store-specific customer behaviour, rather than applying one uniform sales curve across a diverse estate of supermarket and convenience formats.
Prove the new approach in Python
Built a Python proof-of-concept that calculates macro space recommendations from location-specific shopping missions, customer need states and sales curves, replacing spreadsheet formulae with testable, versioned logic.
Build the production platform
Developed the proof-of-concept into a bespoke analytics platform supporting the full macro space workflow, shortening the path from scenario planning through to implementation.
Legacy Excel/VBA data
Bay-space and sales data for food and non-food ranges, across supermarket and convenience formats, originally collected and analysed in Excel VBA models.
Store-behaviour logic refined
Modelling logic reworked to reflect store-specific customer behaviour rather than one uniform sales curve across the estate.
Python recommendation model
Proof-of-concept model calculates space recommendations from location-specific missions, need states and sales curves.
Bespoke analytics platform
Production platform built around the model to support the full macro space workflow at scale.
Scenario planning to implementation
Shortened path from testing space scenarios to rolling out changes across stores.
From legacy spreadsheet inputs to a production analytics platform supporting live macro space decisions.
Built with
Excel / VBA
Legacy space-planning tool used to collect bay-space and sales data and generate recommendations; optimised in the first stage of the engagement before being replaced
Python
Language used to build the proof-of-concept and production modelling logic that calculates space recommendations from missions, need states and sales curves
Bespoke analytics platform
Custom-built production system, developed from the Python proof-of-concept, that now runs the full macro space workflow across the retailer's estate
Return on investment
Method, not a banked figureWeeks-long manual spreadsheet analysis replaced by a repeatable, platform-driven workflow across the full supermarket and convenience estate
Nature of improvement (source reports capability and speed gains, not a single quantified figure)
What was delivered
- The bespoke platform is now the backbone of macro space decisions at the retailer, spanning both supermarket and convenience store formats.
- Substantially augments the internal team's ability to make strategic and operational space changes across the estate.
- Shortens analysis that previously took weeks, per the source's own description.
- Replacing opaque VBA logic with a documented, testable Python model directly addresses the original challenge of models being difficult to maintain and audit.
How a return would be measured
No monetary or percentage figure is provided in the source, so none is presented here. Where a retailer wanted to build a business case for a comparable programme, the generic method would be: measure planner hours consumed per analysis cycle before and after the change, multiply by the loaded cost of that time and the number of cycles run per year, then add any incremental sales uplift attributable to faster, more responsive space decisions. None of those inputs are available for this case, so no derived figure is claimed.
Rebuilding macro space planning on a modern analytics platform
QuantSpark replaced a leading UK supermarket group's ageing Excel VBA space-planning models with a bespoke Python-based analytics platform. That platform is now the backbone of macro space decisions across the retailer's supermarket and convenience estate. The source case study reports no single headline number here; the outcome is structural rather than a percentage or a pound figure. A process that used to take a planning team weeks to run on food and non-food ranges alike is now repeatable, transparent, and fast enough to keep pace with live scenario planning.
The problem. The retailer's macro space decisions, how much bay space to allocate to which category, in which store, at which time of year, ran on large Excel VBA models. These models collected bay-space and sales data across food and non-food ranges in both supermarket and convenience formats, and used historic sales curves to work out where space should move. Built up over years, the models had become slow to run, difficult to maintain, and hard for anyone outside their original authors to audit. Some individual analyses took weeks to complete, which meant the planning team could not iterate at the speed the business needed.
This is a familiar pattern in large retail estates. Spreadsheet tools that start as a tactical fix for a specific planning problem accumulate hidden logic over successive owners. Eventually the model becomes a bottleneck rather than an accelerant: too slow to rerun often, too opaque to explain confidently to a category director, and too fragile to hand to a new analyst without substantial retraining.
The approach. QuantSpark worked alongside the retailer's own data science and engineering teams through a four-stage transformation rather than a single rip-and-replace. First, the existing Excel tools were optimised in place, improving their speed, interface and the accuracy of the recommendations they produced, giving planners a better tool immediately while deeper work continued underneath. Second, the modelling logic itself was refined to reflect store-specific customer behaviour, rather than applying one uniform curve across a diverse estate of supermarket and convenience formats. Third, QuantSpark built a Python proof-of-concept that calculated space recommendations from location-specific shopping missions, customer need states and sales curves, replacing spreadsheet formulae with logic that could be tested, versioned and explained. Fourth, that proof-of-concept was developed into a bespoke analytics platform supporting the full macro space workflow, shortening the path from scenario planning through to implementation.
How it flows today. The workflow moves from the legacy Excel estate, where bay-space and sales data were originally collected, through refined store-behaviour logic, into the Python model that generates recommendations from missions, need states and sales curves, and out through the bespoke platform into scenario planning and implementation. Each stage of that chain replaced a manual, spreadsheet-bound step with a modelled, auditable one.
What it runs on. The starting point was Excel with VBA macros, the retailer's long-standing space-planning tool. The rebuilt recommendation engine runs in Python, chosen for the transparency and testability a spreadsheet cannot offer at this scale. The production system is a bespoke analytics platform, purpose-built for the macro space workflow rather than a repurposed off-the-shelf tool. None of these are named proprietary products in the source material; they are described here only in categorical terms.
The value delivered. The bespoke platform is now the backbone of macro space decisions across the retailer's estate, spanning both supermarket and convenience formats. It substantially increases the internal team's ability to make strategic and operational space changes, and it shortens analysis that previously took weeks. Moving the underlying logic out of opaque VBA and into a testable Python model also addresses the maintainability and audit problem the client originally raised, since a documented, versioned model is inherently easier for a category or finance director to interrogate than a decade of nested spreadsheet formulae.
Because the source reports capability and speed gains qualitatively rather than as a single quantified metric, there is no pound-saving or percentage figure to decompose into an ROI calculation here. Where a retailer wants to build that business case for a similar programme, the generic method is to measure planner hours consumed per analysis cycle before and after, multiply by the loaded cost of that time and the number of cycles run per year, and add any incremental sales uplift captured from faster, more responsive space allocation. None of those inputs are available in this case, so no such figure is presented as fact.
This case illustrates a pattern QuantSpark sees often in retail: the constraint is rarely the absence of data, it is a legacy tool that has outgrown its own architecture. Replacing the model, not just the interface, is what turns a weeks-long manual exercise into a live planning capability.
Figures are drawn from completed QuantSpark engagements. Clients are anonymised by agreement; on a call we will walk you through how each number was measured and, where the client has agreed, put you in touch with a reference.
This engagement drew on several of our practices
Decision analytics
Analytics embedded in decision workflows, not dashboards for dashboards' sake.
Typical engagement: 4 to 8 weeks, 1 engineer, fixed scope.
See the serviceData platform builds
Modern data stack implementations: ingestion, warehouse, transformation, BI.
Typical engagement: 12 to 20 weeks, 2 to 3 engineers, milestone-based pricing.
See the serviceRelated case studies

An ESG-focused investment manager
Accelerating data-driven decision-making with embedded analytics consultants

A multinational plastics packaging manufacturer
Predictive churn model helps a plastics manufacturer prioritise sales engagement

A premium global footwear and lifestyle brand
Turning a Covid supply shock into $3.8m of recovered revenue
Related insights

How AI Coding Assistants are Transforming Software Development: Power, Potential, and Best Practices
AI coding assistants like GitHub Copilot are reshaping software development, enabling faster prototyping and creative problem-solving. While powerful, thoughtful deployment with clear best practices…

The Brunelleschi Lesson: Why Operational AI Demands Both Human Ingenuity and Structural Rigour
Successfully implementing enterprise AI requires a dual focus: engaged human ingenuity and robust data infrastructure. Neglecting either side leads to underperformance, a lesson discernible from historical breakthroughs in art and science.

QuantSpark: Turning AI Ambition into Operational Reality for Private Equity
QuantSpark partners with private equity firms and their portfolio companies to deliver end-to-end AI transformation, combining strategy, AI, and software engineering to build high-ROI applications
Ask about our work
Answers only from our documented case studies
Powered by the same applied-AI approach we deliver for clients