Skip to content
Beta
All guides

Importing from a spreadsheet

Bring in items, stock, places and minimums from a CSV or Excel file, and check the totals before anything changes.

After reading this guide, you'll know:

  • How to prepare a file, and which columns Magpie understands.
  • How columns are matched, and what each import option does.
  • How to read the preview, and check the totals before and after.
  • What happens to items and places that already exist.
On this page

An import adds items to Magpie from a spreadsheet, with their stock in each place, and creates the places, folders, categories and vendors the file names. You check how the columns are matched and preview every row before anything is added.

1 Before you import

People whose role lets them import data can import: owners, admins and managers, unless you've changed the roles. They open it from Settings › Import; anyone who can import sees Settings in the menu, with the sections their role allows. Before your first count, Import your list first on Home leads there too, and so does Import a spreadsheet on the Items and Locations pages while they're empty.

Your file needs:

  • CSV or Excel (.xlsx). In an Excel file, only the first sheet is read.
  • A header row first, then one row per item, or per item and place.
  • Up to 50,000 rows, and smaller than 20 MB. Split a bigger file and import it in parts.

CSV files can use commas, semicolons or tabs between columns. Only a Name column is required; everything else is optional.

Starting from nothing? On Import a file, Download template gives you a CSV with the usual columns (Name, SKU, Quantity, Unit, Location, Folder, Category, Tags, Min quantity, Reorder quantity, Cost, Price, Barcode, Vendor, Description and Notes) plus one for each of your custom fields, and an example row.

Enlarge screenshot: The Import a file page: a box to choose a CSV or Excel file, Download template, and notes for files from Sortly, Trakr and Shopify and for till sales
Settings › Import › Import a file

2 Upload and match your columns

  1. Go to Settings › Import and tap Import a file.
  2. Choose the file and tap Upload and continue.
  3. Under Match your columns, each column of your file is listed with a few sample values and the field Magpie guessed for it. Change any guess, and choose Ignore for columns you don't need.

Magpie recognizes common headers (Qty On Hand, Part No., Unit Cost ($), Reorder Point) and the exports from Sortly, Trakr and Shopify. When it recognizes a Sortly or Trakr export, the page says so under the file name.

2.1 What each field does

FieldWhat it does
NameThe item's name. Required.
SKUYour code for the item. Rows with the same SKU (or the same name, when there's no SKU) become one item.
QuantityHow many are at the row's place.
UnitMatched to your units of measure by name or abbreviation (Each or ea). A unit that doesn't match is added as a new one.
Minimum quantity, Reorder quantityThe item's minimum and reorder amount for every place.
Minimum at this location, Reorder quantity at this locationA minimum for the row's place only, such as one van.
Cost, Selling priceWhat you pay, and what you sell it for.
Barcode, Second barcode, Barcodes (several, comma-separated)Barcodes for the item.
Pack name (e.g. Case), Units per packA pack the item comes in, like a Case of 12, for counting and ordering. Each or 1 is skipped.
Description, NotesText on the item.
TagsSeveral, separated by commas. Added to any tags the item already has.
CategoryCreated if you don't have it yet.
Folder (path)Like Tools > Power tools. Folders are created if you don't have them yet.
Location (path), Sub-location level 1 to 5Where the row's stock is. See Places in the file.
Vendor, Vendor part numberWho you buy it from, and their number for it. New vendors are created.
Other part numbers (comma-separated)OEM, interchange or superseded numbers. Search finds the item by any of them.
Type (stocked / equipment), Is equipment (yes / no)Words like equipment, tool or asset, or a yes, make the item a tool or equipment.
Row type (Item / Folder)A row marked Folder creates a place instead of an item.
Product (groups sizes and colours) and the option, Size and Colour fieldsSizes and colours. See Sizes and colours.
Custom field: nameFills one of your custom fields. Values are checked against the field's type.

Paths can be written with >, /, › or \ between the names. Lists (tags, barcodes, part numbers) can use commas, semicolons or |.

Note In numbers, currency signs and spaces are ignored. Commas between thousands are fine (1,200 and 12,500.75), and so is a decimal comma (2,5 or 1.200,50). The one case read as thousands is a single comma before exactly three digits, so write one and a quarter kilograms as 1.25, not 1,250.

3 Choose the import options

Below the columns are four options:

  • Put quantities in: the place for rows that have a quantity but no location. It starts at your first top-level place. Choose Only rows with a location to leave it out; then every row with a quantity needs a place in the file.
  • Match existing items by: how Magpie decides a row is an item you already have: SKU (or name if blank), Barcode or Name.
  • Update items that already exist: when ticked, the file's values replace what those items have (empty cells leave a field alone). When it's not ticked, they're skipped.
  • Set stock of existing items to the file's quantity: when ticked, stock of items that already exist is set to the file's number at that place, recorded as an import correction in the item's history. When it's not ticked, items you already have keep their stock. It only applies to items being updated, so tick both.

Tap Check the file to check every row.

4 Review the preview

The review shows four totals: Ready (rows that will import), Problems, Total quantity in file and Total value in file (each quantity times its cost). Compare them with your spreadsheet before you go on.

The table shows the first 50 rows, with what will happen to each under Action:

  • Add: a new item.
  • Update: an item you already have.
  • Add stock: another row for an item that appears earlier in the file, adding its stock in another place.
  • Skip: an item you already have, while Update items that already exist is off.
  • Create location: a row marked as a folder.

Location shows the full place each row means, marked (new) when it will be created. Problems says what's wrong with a row: a missing name, a number that isn't one, a quantity with nowhere to go, or a place that could be more than one.

Change a column or an option and tap Check again as often as you like. Download rows with problems gives you a CSV of those rows with the reason for each, to fix and import later.

When the numbers look right, tap Import (the button says how many rows). Rows with problems are left out, and you're asked to confirm.

Note If items or places change after you check the file, Magpie checks it again before importing and asks you to look over the preview once more.

5 Follow the import

The import runs in the background. You can leave the page: you'll get a notification when it finishes. The finished import shows how many items were Added and Updated, any Problems, and Quantity: file → imported. If the two quantities differ, Magpie says why, such as rows with problems left out or existing items keeping their stock.

Stock from an import is recorded in Activity as Imported, with the file's name. See items opens your item list.

If an import stops partway, the page says why. Rows already imported are kept, and you can run the file again without adding anything twice.

Every import is listed on Settings › Import with who uploaded it, when, its rows and its status: Uploaded, Validated, Importing, Completed or Failed.

6 Places in the file

A Location column can name a place in full (Warehouse › Aisle 3 › Shelf B) or by its own name (Shelf B). Magpie looks for the first name among your top-level places, then anywhere. If it finds exactly one, that's the place. If it finds more than one, the row gets a problem asking for the full path. Whatever doesn't exist yet is created inside the place it found, with a type guessed from its name: Van 3 becomes a vehicle and Shelf A1 a shelf.

Places named in the file are created even when a row has no quantity, so the file can bring your place structure across on its own.

The same item in several places is one item with stock in each: give each place its own row with the same SKU or name.

7 Sizes and colours

Rows of one product share a Product (groups sizes and colours) column, such as Shopify's Handle or a Style column, or the same name. Use Option 1 name and Option 1 value columns (up to three options), or plain Size and Colour columns. Each row becomes its own item, named like Classic tee – Black / M, grouped as one product.

A Shopify product export works as it is: later rows that leave the title out get it from the product's first row, and rows that only hold an image are skipped. See Sizes and colours.

8 Other things to know

  • Quantities are rounded to the decimal places of the item's unit.
  • A barcode that already belongs to another item stops that item's rows from importing, with a problem naming the other item.
  • An item's unit isn't changed by an import once it has stock history.
  • For an item tracked by lot, imported stock goes into a lot named Imported.

Sales from a till are a different file: see Importing sales. Coming from another app? See Moving from Sortly and Moving from Trakr.

Still stuck?

Email support with what you were trying to do and any message you saw.

Contact support