Paste SKUs and barcodes from Excel: leading zeros and 8.9E+12
A supplier sends a price list with 400 EAN codes. You copy the barcode column, click the first Barcode cell in the Shopify bulk editor, paste, and the toast says 400 cells filled. The column is full of 8.90123E+12. In another sheet the UPC codes all start with a zero, and after the paste every one of them is eleven digits long instead of twelve. Nothing failed. Save would even go through. The scanner at the till is the first thing that would notice.
This post is about why identifier columns go wrong on the way from a spreadsheet into Shopify, what Shopify Admin Power-Up does with each pasted cell (the same thing it does with prices: nothing clever), and how to prepare a SKU or barcode column so it arrives as the string it was supposed to be. The prices post covers symbols and decimal commas; identifiers have their own, quieter failure modes.
Two fields that look like numbers and are not
A SKU is a label. A barcode is a label that happens to be made of digits. Shopify stores both as text: a barcode field holds whatever characters you put in it, leading zero included, and a SKU can be TS-BLK-M or 000417 with equal ease. Neither field does arithmetic, so neither has any reason to drop a zero or round anything.
A spreadsheet does not know that. When a cell receives something that parses as a number, Excel, Numbers and Google Sheets all store it as a number, and from that moment the cell behaves like one. The three symptoms below are all consequences of that single decision, made silently when the data entered the sheet, often long before you thought about Shopify.
Symptom one: the leading zero is gone
UPC-A codes are twelve digits and a good share of them begin with 0. Internal SKUs are often zero-padded so they sort correctly. Type 012345678905 into a General-formatted cell and the sheet stores the number 12,345,678,905, which has eleven digits. The zero is not hidden; it no longer exists in the cell. Copying the cell copies eleven digits, the paste writes eleven digits, and Shopify saves eleven digits without complaint, because an eleven-digit string is a perfectly valid barcode as far as a text field is concerned.
The same thing happens when a CSV is opened by double-clicking it. Excel reads a column of twelve-digit codes, decides they are numbers, and the zeros are gone before the file is even on screen. A Shopify product export opened this way and saved back is the classic route to a store full of eleven-digit UPCs.
Symptom two: 8.90123E+12
EAN-13 codes are thirteen digits. In our experience, a General-formatted cell holding a thirteen-digit number in a default-width column displays it in scientific notation, something like 8.90123E+12, and widening the column makes the full number reappear. That detail matters here more than anywhere else, because the clipboard carries the displayed text of a cell, not its stored value. The same column, copied at two different widths, can paste two different things. Narrow column, you paste 8.90123E+12; wide column, you paste 8901234567890.
So a paste that worked last week and fails today may differ only in how someone left the column widths. It is one of the few cases where a spreadsheet's layout changes its data as seen by another program.
Symptom three: the last digit turned into a zero
Spreadsheets keep about fifteen significant digits of a number. An EAN-13 or a GTIN-14 fits. A sixteen-digit code does not: a serial number, a long internal reference or a GTIN with a packaging indicator and a prefix can come out as 1234567890123450, with the final digit replaced by zero, and the sheet will show you that version as if it were the original. No formatting fixes this one after the fact, because the precision was lost when the value was stored. The only cure is to keep those columns as text from the moment the data arrives.
What the extension does with each cell
The spreadsheet paste in Shopify Admin Power-Up reads the plain text on the clipboard, splits it into rows and cells (handling the quotes Excel and Sheets wrap around cells containing tabs or line breaks), finds the grid cell you pasted into and writes each value into the matching cell to the right and below. Hidden columns are skipped; rows below the fold are scrolled into view. The dropdowns and hidden columns post walks through that part.
What it does with the value itself is exactly nothing. 8.90123E+12 is written as those eleven characters. 12345678905 is written as eleven digits. A value with a leading space, a trailing space or a stray apostrophe is written with it. The one exception is a dropdown column, where the text is matched against the option labels. For a text field, the cell receives what the clipboard held, as if you had typed it, and the toast at the end tells you how many cells were filled so you can check before pressing Save.
There is no "fix barcodes" step on purpose. The extension cannot know that a column is barcodes rather than reference numbers, and it cannot recover a zero that the spreadsheet already threw away. A tool that quietly re-padded to twelve digits would get every thirteen-digit EAN wrong. Moving your data verbatim is the only behaviour that is correct for everybody.
What Shopify does on Save
The bulk editor validates on Save, not on paste. For a price column that means flagged cells; for SKU and Barcode columns it mostly means nothing, because almost any string is acceptable. That is the uncomfortable part. A mangled price gets caught by the field; a mangled barcode does not. Shopify's help page on bulk editing describes the Save step, and the check you want happens before it: scan the column for anything containing E+, anything shorter than the length you expect, and anything that does not match a neighbour's pattern.
Shopify does not write to a product until you press Save, so a bad paste costs nothing as long as you look first. Leave the page without saving and the products are exactly as they were.
Fix the sheet before you copy
All three symptoms have the same root, so the fixes are about how data enters the spreadsheet, not how it leaves.
1. Format the column as Text before the data arrives
Select the empty column, set its format to Text (Excel: Home, Number format, Text. Sheets: Format, Number, Plain text. Numbers: Data Format, Text), and only then type or paste the codes into it. A Text-formatted cell stores 012345678905 as those twelve characters and shows them that way. Formatting as Text after the numbers are in does not bring back a lost zero or a lost sixteenth digit; it only stops the display from using scientific notation.
2. Import CSVs instead of opening them
In Excel use Data, From Text/CSV, and in the preview set the barcode and SKU columns to Text before loading. In Google Sheets, File, Import, and untick "Convert text to numbers, dates and formulas". Both routes keep the column as text with every zero intact. Double-clicking the file in the file manager is the route that loses them.
3. Rebuild the zeros you can rebuild
If the codes have already become numbers but are all the same known length, a formula puts the padding back. For twelve-digit UPCs: =TEXT(A2,"000000000000"), twelve zeros. For thirteen-digit EANs: =TEXT(A2,"0000000000000"). The result is a text string of the right length, and copying that helper column pastes clean. This also forces a wide-looking display, so the scientific notation problem disappears at the same time. It cannot help with a column of mixed lengths, and it cannot restore a digit that the fifteen-digit limit already replaced with zero.
4. Check one cell before you copy 400
Click a cell in the barcode column and read the formula bar. If it shows 8901234567890 while the cell shows 8.90123E+12, the value is fine and the display is the problem; widen the column or use the TEXT() helper. If the formula bar shows eleven digits for a UPC that should have twelve, the zero is gone and you need the source file or the padding formula.
The apostrophe trick, and why it is fine
Typing an apostrophe before a code, '012345678905, is the oldest way to force Excel to store text. The apostrophe is a prefix instruction to the sheet, not part of the cell's content: it does not show in the cell, and copying the cell copies the twelve digits without it. So a column prepared this way pastes correctly through the extension. The only thing to watch is a sheet where someone typed the apostrophe into an already Text-formatted cell, where it becomes a literal character and will be pasted into Shopify as one. The formula bar shows the difference.
A routine for identifier columns
- Keep SKU and Barcode columns as Text in every sheet that feeds Shopify, and import CSVs rather than opening them.
- Before copying, check one cell in the formula bar and one visual scan of the column for
E+and odd lengths. - Open the bulk editor with the same rows in the same order as the sheet, and the SKU or Barcode column visible. Hidden columns are skipped.
- Click the first target cell, paste, read the toast.
- Scan the pasted column once more. Shopify will not catch a wrong barcode for you.
- Save.
Afterwards, the quickest way to confirm a code landed is to search for it in the product list, which the barcode search post covers. A code you can find by scanning its label into the search box is a code that will scan at the till.
The spreadsheet made a reasonable guess that a column of digits was numbers. For barcodes and SKUs that guess is wrong, and the way to win is to tell it so before the data arrives, then let the paste move the text exactly as it is.