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.

4.9starsBuilt for Shopify
FlexSync video: Shopify bulk price update from cost: markup formula with VLOOKUP
How it works

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
Shopify admin · Fullsuit 2XS
Price11,200.00
Markup60%
Updated byFlexSync ✓
Illustrative example
Copy and paste

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.6
Markup on cost

Cost times 1.6.

=ROUND(VLOOKUP(X2,Costs!A:C,3,0)/(1-0.35),0)
Target margin

Price for a 35% margin, rounded.

=VLOOKUP(B2,IMPORTRANGE(url,"Sheet1!A2:D500"),3,0)*1.6
Costs in another file

Tested: cost 7,000 became 11,200.

Good to know

Tips before you start

01Exact match

Keep the last argument at 0 so VLOOKUP only returns an exact SKU match.

02Missing SKUs

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.

03Refresh after cost changes

Fill the Price formula down again after updating costs.

Setup

Up and running in three steps

1

Turn on formulas

In FlexSync, open Settings, then Advanced Settings, and switch on Allow Sheet Formula.

2

Paste the formula

Add it to the first row of the editable column you want to change.

3

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 guide

Frequently 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.

Install for Free Compare plans Free plan · 14-day free trial on paid plans