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.
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
| Product | Colour | Size | SKU |
|---|---|---|---|
Dawn Patrol Fullsuit | Black | 2XS | DAW-BLA-2XS |
Dawn Patrol Fullsuit | Black | XS | DAW-BLA-XS |
Dawn Patrol Fullsuit | Black | 3XS | DAW-BLA-3XS |
Ready-to-use variations
Native Google Sheets formulas. Paste one in the editable column and fill down.
="FB-"&RIGHT(B2,6)Tested: created FB-716807.
=UPPER(LEFT(L2,3))&"-"&UPPER(LEFT(K2,3))&"-"&I2Readable SKUs like DAW-BLA-2XS.
=UPPER(LEFT(L2,3))&"-"&TEXT(ROW()-1,"0000")Sequential codes like DAW-0005.
Tips before you start
Include size or variant ID so no two variants share a SKU.
Once SKUs look right, paste them as values so they never change by accident.
Once set, use SKUs as the key for VLOOKUP cost and supplier formulas.
Up and running in three steps
Turn on formulas
In FlexSync, open Settings, then Advanced Settings, and switch on Allow Sheet Formula.
Paste the formula
Add it to the first row of the editable column you want to change.
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 guideMore formulas that change your store
Auto-draft sold-out products
=IF(On_hand=0,"DRAFT","ACTIVE")FlexSync reads the formula result, not the formula.
ExploreSitewide sale pricing
=Compare_at*0.85Write the discount once, fill it down the Price column and FlexSync sends every new price to Shopify.
ExploreSupplier price sync
=IMPORTRANGE(supplier_url,"Sheet1!B2")IMPORTRANGE reads a cell from any Google Sheet you can open.
ExploreCost-plus pricing
=VLOOKUP(SKU,Costs,3,0)*1.6Your cost list can live in another tab or another file.
ExploreAuto-tag low stock
=IF(Available<10,"low-stock","")Tags drive smart collections, storefront filters and Shopify Flow.
ExploreClean up product titles
=PROPER(raw_title)Keep the raw title in its own column or the supplier's Sheet.
ExploreFrequently 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.
