Formula recipe

Shopify SKU generator in Google Sheets

Missing SKUs? Generate a SKU for every variant from the product, colour, size or variant ID with one formula, and FlexSync writes them to Shopify.

4.9starsBuilt for Shopify
FlexSync video: Shopify SKU generator: create SKUs for every variant in Google Sheets
How it works

A clean SKU on every variant

SKUs make stock counts, supplier orders and lookups easier. Build them from data already in your Sheet.

  • Prefix plus variant ID
  • Product, colour and size codes
  • Fill down for the whole catalogue
Shopify admin · Hooded Wetsuit
SKUFB-716807
StatusCreated
Updated byFlexSync ✓
Illustrative example
Copy and paste

Ready-to-use variations

Native Google Sheets formulas. Paste one in the editable column and fill down.

="FB-"&RIGHT(B2,6)
Prefix plus ID

Tested: created FB-716807.

=UPPER(LEFT(L2,3))&"-"&UPPER(LEFT(K2,3))&"-"&I2
Product, colour, size

Readable SKUs like DAW-BLA-2XS.

=UPPER(LEFT(L2,3))&"-"&TEXT(ROW()-1,"0000")
Numbered SKUs

Sequential codes like DAW-0005.

Good to know

Tips before you start

01Keep SKUs unique

Include size or variant ID so no two variants share a SKU.

02Set once, then paste values

Once SKUs look right, paste them as values so they never change by accident.

03Use SKUs everywhere

Once set, use SKUs as the key for VLOOKUP cost and supplier formulas.

Setup

Up and running in three steps

1

Turn on formulas

In FlexSync, open Settings, then Advanced Settings, and switch on Allow Sheet Formula.

2

Paste the formula

Add it to the first row of the editable column you want to change.

3

Fill down

Drag it down the column. FlexSync sends each result to Shopify.

New to formulas in FlexSync? Our formula guide covers setup, supported columns and plan allowances.

Read the formula guide

Frequently asked questions

Will this overwrite existing SKUs?

Yes, for the rows you fill. Filter to rows with an empty SKU first.

Can I use letters from the title?

Yes. LEFT, MID and UPPER pull and format any part of the title.

Do SKUs show on my storefront?

Only if your theme displays them. They always show in Shopify admin.

Let your formulas
run your store

Install FlexSync free, turn on Allow Sheet Formula and try this recipe on your own catalogue.

Install for Free Compare plans Free plan · 14-day free trial on paid plans