# Update several variant codes from a spreadsheet

Paste manufacturer references for one product’s variants, preserve existing codes and check the saved result.

Source: https://peregrineship.com/help/products-and-sourcing/update-variant-codes-from-a-spreadsheet/

Updated: 2026-11-28

Use the spreadsheet editor when a single style has several colors or sizes. Each row must match one existing **Peregrine SKU** on the product you opened. The first column identifies which variant to update.

## Prepare the four columns

1. Open the product in **My products → Product identifiers → Manage codes**. Expand **Update multiple variants from a spreadsheet** and choose **Download current codes**. Keep a copy of the original.

   ![Manage codes control in the product drawer.](https://peregrineship.com/assets/merchant-help/focus-product-manage-codes.webp)

   Platform screenshot with example data. Manage codes is in the product detail drawer. Open it before expanding the spreadsheet editor.

2. In a spreadsheet, keep the columns in this order: **Peregrine SKU**, **store product code**, **manufacturer product code**, **retail barcode**. Keep codes as text so leading zeroes survive. Omit any variant you do not intend to edit.

3. Change the values from verified product records. A blank cell in the last three columns clears its saved value on that row. Retain existing values you want to keep.

4. Copy the four cells for each changed variant, without a header. Paste into **Paste spreadsheet rows** and select **Apply pasted rows**. Check each affected variant, then select **Save product codes**. Reopen the editor to confirm.

![Expanded spreadsheet editor showing Download current codes, Paste spreadsheet rows and Apply pasted rows.](https://peregrineship.com/assets/merchant-help/inline-identifiers-sheet.webp)

Platform screenshot with example data. Download current codes, preserve the four-column order and paste the changed rows. Apply pasted rows lets you inspect edits before saving the codes.

## Common questions

### Can I paste a CSV with commas between columns?

Copy cells from the sheet so columns arrive separated by tabs. Each line must have four cells, including the last cell when the barcode is blank.

### It says nothing was applied. Which row is wrong?

Check for a header, duplicate SKU, missing column or SKU belonging to another product. Start with one verified row if necessary. Review the correct product before saving.

### What if a manufacturer gave me codes for a mixed set?

Record each actual item’s identifier. The editor accepts multiple codes separated by commas within one cell, with up to 70 characters per code. Keep barcode and manufacturer columns distinct.

## Change one reference without erasing the other codes

1. **Start from the export** — Download current codes for this product. Keep the original SKU, store reference and existing barcode where they are correct.
2. **Edit only the intended row** — Copy four tab-separated cells, beginning with the unique Peregrine SKU. An empty value clears the existing cell on that row.
3. **Apply, inspect, save** — Apply pasted rows fills the editor. Select the affected variant, check it, then choose Save product codes.

## Related instructions

- [Add the right product codes to each variant](https://peregrineship.com/help/products-and-sourcing/variant-product-identifiers.md)
- [Set up permanent product codes for your own DTC brand](https://peregrineship.com/help/products-and-sourcing/automatic-codes-for-your-brand.md)
