Guide · Exports

How to export Shopify inventory to Excel, with costs and values

Shopify's inventory export gives quantities, its product export gives costs. Here is how to combine them into one file with the value of your stock, and how to avoid the classic Excel traps.

The two native exports

Shopify has two exports that together describe your stock:

ExportWhereWhat it containsWhat it lacks
Inventory CSVProducts > Inventory > ExportQuantities per variant and location (incoming, unavailable, committed, available, on hand)Costs and prices
Product CSVProducts > ExportProducts and variants, SKU, price, cost per itemQuantities per location (only for single-location stores)

Both are described in Shopify's help: inventory CSV and product CSV.

Step by step

  1. Export the inventory. In Products > Inventory, click Export, choose All locations and All states, and export all variants.
  2. Export the products. In Products, click Export and export all products.
  3. Open both files in Excel (Data > From Text/CSV, so you control the column types).
  4. Join on SKU. In the inventory sheet, add a column that looks up the cost per item from the product sheet: =XLOOKUP([@SKU], Products[SKU], Products[Cost per item], "").
  5. Compute the value. Add a column =[@[On hand (current)]] * [@Cost] and sum it, per location with a pivot table or overall.

Leave the cost empty, not zero, when it is missing, and count those rows apart: they are stock you cannot value yet.

Excel traps

  • Leading zeros. Opened directly, a CSV loses the leading zeros of SKUs and barcodes ("00123" becomes "123"). Import the file and set those columns to Text.
  • Duplicate or empty SKUs. A join on SKU fails if two variants share a SKU or have none. Fix them in Shopify, or join on handle plus options.
  • Decimal separators. Depending on your regional settings, "12.50" may be read as text. Check that the cost column is numeric.
  • Timing. Both exports describe the moment you run them. Export them together, on the date you need.

A ready-made file for any recorded day

If you need this file regularly, or for a date that has passed, a daily snapshot saves the joins:

Illustration of StockLedger with sample data from a fictional store.

StockLedger exports any recorded day as CSV or Excel with one row per variant and location: product, SKU, barcode, location, quantities, unit cost of that day, value at cost and at catalogue price. The Excel file adds a summary sheet and keeps leading zeros. On Unlimited, the same file can be sent automatically every month.

This guide describes software features and general practice. It is not accounting, tax or legal advice: check with your accountant for your situation.

Start your inventory history today. Tomorrow it has a past.

Every day without a snapshot is a day you cannot look up later. Install StockLedger, and the first one is taken right away.

14-day free trial at launch · From $9/month · Billed by Shopify