Formula recipe
Auto-draft sold-out Shopify products with one formula
Put one formula in the Status column. Shopify products at zero stock move to Draft, so sold-out items leave your storefront, and the rest stay Active.
Zero stock in the Sheet, Draft in Shopify
FlexSync reads the formula result, not the formula. Shopify sees DRAFT and hides the product from your store.
- No more sold-out products on collection pages
- One formula, filled down the whole column
- Works on every product in the Sheet
| Product | On hand | Status |
|---|---|---|
Black Swimsuit | 0 | DRAFT |
Hooded Wetsuit | 10 | ACTIVE |
Soft Surfboard 5'7 | 2 | ACTIVE |
Fullsuit 3XS | 10 | ACTIVE |
Ready-to-use variations
Native Google Sheets formulas. Paste one in the editable column and fill down.
=IF(T2=0,"DRAFT","ACTIVE")Hide a product as soon as it sells out.
=IF(T2<=2,"DRAFT","ACTIVE")Pull products at two units left to avoid overselling.
=IF(AND(T2=0,Z2="DENY"),"DRAFT","ACTIVE")Only draft products that can't sell when out of stock.
Tips before you start
Shopify status accepts ACTIVE, DRAFT or ARCHIVED. Any other word is rejected and the cell resets.
Fill the Status formula down again after you update stock. FlexSync then sends Active back to Shopify.
Each formula cell counts as one formula-driven cell in your plan's allowance.
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
Sitewide 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.
ExploreGenerate SKUs
="FB-"&RIGHT(Variant_id,6)SKUs make stock counts, supplier orders and lookups easier.
ExploreFrequently asked questions
Will a drafted product disappear from my store?
Yes. Draft products are hidden from all sales channels until you set them back to Active.
Which stock column should I use?
Use On hand or Available. Available is On hand minus committed orders.
Can I archive instead of draft?
Yes. Replace "DRAFT" with "ARCHIVED" in the formula.
Let your formulas
run your store
Install FlexSync free, turn on Allow Sheet Formula and try this recipe on your own catalogue.
