The two native exports
Shopify has two exports that together describe your stock:
| Export | Where | What it contains | What it lacks |
|---|---|---|---|
| Inventory CSV | Products > Inventory > Export | Quantities per variant and location (incoming, unavailable, committed, available, on hand) | Costs and prices |
| Product CSV | Products > Export | Products and variants, SKU, price, cost per item | Quantities per location (only for single-location stores) |
Both are described in Shopify's help: inventory CSV and product CSV.
Step by step
- Export the inventory. In Products > Inventory, click Export, choose All locations and All states, and export all variants.
- Export the products. In Products, click Export and export all products.
- Open both files in Excel (Data > From Text/CSV, so you control the column types).
- 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], ""). - 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:
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.