Inventory ABC & Pareto Analysis with Google Sheets for Supply Chain Optimization

Tags*: Supply Chain, Inventory Management, ABC Analysis, Pareto Principle, Demand Variability, Automation, Google Sheets

Context

Hi! Iโ€™m Samir โ€” a Supply Chain Engineer and Data Scientist based in Paris, and founder of LogiGreen Consulting.

I help companies optimise inventory and logistics operations by combining data analytics and workflow automation.

This workflow is part of our inventory optimisation toolkit, allowing businesses to perform ABC classification and Pareto analysis directly from their transactional sales data.

> Automate inventory segmentation with n8n!

๐Ÿ“ฌ For business inquiries, feel free to connect with me on LinkedIn

Who is this template for?

This workflow is designed for supply chain analysts, demand planners, or inventory managers who want to:

Identify their top-performing items (Pareto 80/20 principle)
Classify products into ABC categories based on sales contribution
Evaluate demand variability (XYZ classification support)

Imagine you have a Google Sheet where daily sales transactions are stored:

The workflow aggregates sales by item, calculates cumulative contribution, and assigns A, B, or C classes. It also computes mean, standard deviation, and coefficient of variation (CV) to highlight demand volatility.

How does it work?

This workflow automates the process of ABC & Pareto analysis from raw sales data:

๐Ÿ“Š Google Sheets input provides daily transactional sales
๐Ÿงฎ Aggregation & code nodes compute sales, turnover, and cumulative shares
๐Ÿง  ABC class mapping assigns items into A/B/C buckets
๐Ÿ“ˆ Demand variability metrics (XYZ) are calculated
๐Ÿ“‘ Results are appended into dedicated Google Sheets tabs for reporting

๐ŸŽฅ Watch My Tutorial

Steps:

๐Ÿ“ Load daily sales records from Google Sheets
๐Ÿ”Ž Filter out items with zero sales
๐Ÿ“Š Aggregate sales by store, item, and day
๐Ÿ“ˆ Perform Pareto analysis to calculate cumulative turnover share
๐Ÿงฎ Compute demand variability (mean, stdev, CV)
๐Ÿง  Assign ABC classes based on cumulative share thresholds
๐Ÿ“ฅ Append results into ABC XYZ and Pareto output sheets

What do I need to get started?

Youโ€™ll need:

A Google Sheet with sales transactions (date, item, quantity, turnover) that is available here: Test Sheet
A Google Sheets account connected in n8n
Basic knowledge of inventory analysis (ABC/XYZ)

Next Steps

๐Ÿ—’๏ธ Use the sticky notes in the n8n canvas to:

Add your Google Sheets credentials
Replace the Sheet ID with your own sales dataset
Run the workflow and check the output tabs: ABC XYZ, Pareto, and Store Sales

This template was built using n8n v1.107.3
Submitted: September 15, 2025

0
Downloads
42
Views
6.98
Quality Score
beginner
Complexity
Author:Samir Saci(View Original โ†’)
Created:9/19/2025
Updated:11/11/2025

๐Ÿ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments