Formula recipe
Shopify low stock alert with an automatic tag
One IF formula in the Tags column tags low inventory automatically. Use the low-stock tag in Shopify collections, filters and Flow.
A tag Shopify can act on
Tags drive smart collections, storefront filters and Shopify Flow. Let your stock level set the tag.
- Build a Last chance collection
- Trigger a Flow reorder alert
- Filter low stock in Shopify admin
| Product | Available | Tags |
|---|---|---|
Soft Surfboard 4'6 | 4 | low-stock |
Soft Surfboard 5'7 | 4 | low-stock |
Hooded Wetsuit | 10 | |
Fullsuit 2XS | 10 |
Ready-to-use variations
Native Google Sheets formulas. Paste one in the editable column and fill down.
=IF(W2<10,"low-stock","")Tag anything under 10 units.
=IF(W2=0,"sold-out",IF(W2<10,"low-stock","in-stock"))One tag per product, based on stock.
=IF(W2<5,"last-chance","")Feed a smart collection for urgency.
Tips before you start
Each formula writes the Tags cell. Keep any other tags you need inside the formula result.
Create a Shopify Flow trigger on product tag added to send reorder alerts.
Fill the Tags formula down again after updating stock.
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.
ExploreClean up product titles
=PROPER(raw_title)Keep the raw title in its own column or the supplier's Sheet.
ExploreGenerate SKUs
="FB-"&RIGHT(Variant_id,6)SKUs make stock counts, supplier orders and lookups easier.
ExploreFrequently asked questions
Will this remove my existing tags?
The Tags cell is replaced by the formula result. Include existing tags in the formula if you need them.
Can I build a collection from this tag?
Yes. Create a smart collection with the condition Product tag is equal to low-stock.
Which stock column should I use?
Available is best. It already subtracts committed orders.
Let your formulas
run your store
Install FlexSync free, turn on Allow Sheet Formula and try this recipe on your own catalogue.
