Formula recipe
Shopify bulk price update from cost with VLOOKUP
Keep supplier costs in one Sheet. VLOOKUP finds each product's cost, your markup formula sets the price, and Shopify follows.
Costs in one place, prices everywhere
Your cost list can live in another tab or another file. VLOOKUP pulls the right cost for each row and your markup does the rest.
- Look up by SKU or variant ID
- Pull costs from another file with IMPORTRANGE
- Change the markup, reprice a category
| Product | Cost | Markup | Price |
|---|---|---|---|
Fullsuit 2XS | 7,000 | ×1.6 | 11,200 |
Hooded Wetsuit | 8,000 | ×1.6 | 12,800 |
Soft Surfboard 5'7 | 9,000 | ×1.6 | 14,400 |
Ready-to-use variations
Native Google Sheets formulas. Paste one in the editable column and fill down.
=VLOOKUP(X2,Costs!A:C,3,0)*1.6Cost times 1.6.
=ROUND(VLOOKUP(X2,Costs!A:C,3,0)/(1-0.35),0)Price for a 35% margin, rounded.
=VLOOKUP(B2,IMPORTRANGE(url,"Sheet1!A2:D500"),3,0)*1.6Tested: cost 7,000 became 11,200.
Tips before you start
Keep the last argument at 0 so VLOOKUP only returns an exact SKU match.
If a SKU isn't in the cost list, VLOOKUP returns an error and FlexSync resets that cell. Wrap it in IFERROR to fall back to the current price.
Fill the Price formula down again after updating costs.
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.
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
My products have no SKUs. Can I still use this?
Yes. Look up by variant ID instead. It's already in the Sheet.
Can I keep a different markup per category?
Yes. Add a markup column to your cost Sheet and multiply by it.
Does this change cost per item in Shopify?
No. This formula sets the price only.
Let your formulas
run your store
Install FlexSync free, turn on Allow Sheet Formula and try this recipe on your own catalogue.
