Formula recipe
Run a Shopify sale from one formula
Bulk discount every price as a percentage of the original. Fill the formula down once and Shopify updates every product, then change one number to change the whole sale.
Change one number, reprice the whole store
Write the discount once, fill it down the Price column and FlexSync sends every new price to Shopify. Compare-at stays put, so shoppers see the strike-through.
- 15% off, 30% off, any percentage
- Prices round the way you want
- End the sale by pointing Price back at compare-at
| Product | Compare at | Price |
|---|---|---|
Soft Surfboard 4'6 | 13,300 | 11,305 |
Soft Surfboard 5'7 | 13,300 | 11,305 |
Hooded Wetsuit | 13,300 | 11,305 |
Black Swimsuit | 13,300 | 11,305 |
Ready-to-use variations
Native Google Sheets formulas. Paste one in the editable column and fill down.
=Q2*0.85The simplest sale price.
=ROUNDUP(Q2*0.8,-2)-120% off, rounded to end in 99. Tested: 13,300 became 10,699.
=Q2Set Price back to the compare-at price.
Tips before you start
Shopify only shows a strike-through price when compare-at is higher than price.
Price can't reference itself. Base the formula on compare-at or a cost column.
FlexSync sends a formula result when the formula is entered or filled down.
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.
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
Can I run a sale on one collection only?
Yes. Filter the Sheet to that collection and fill the formula down the visible rows.
Does this change my compare-at price?
No. Only the Price column changes.
How do I end the sale?
Fill =Q2 down the Price column, or paste your original prices back.
Let your formulas
run your store
Install FlexSync free, turn on Allow Sheet Formula and try this recipe on your own catalogue.
