Keep leading zeros in Excel and CSV product SKUs
Preserve SKUs such as 00124 in Excel and CSV imports. Use text cells, check the saved file and keep photo filenames consistent with your product codes.
Published by LineSheetDesk · Last updated
Excel can interpret a SKU such as 00124 as the number 124. The missing zeros change the product identifier and can break photo matching or make an update look like a different item. Store product codes as text before entering or importing them.
Treat product codes as text from the beginning
Set the SKU column to text in the spreadsheet application before entering or pasting codes. If the application has already changed 00124 to 124, formatting that cell as text later will not recover the missing characters. Correct the code from a reliable source rather than assuming every code has the same length.
Check the saved CSV
A CSV stores field values without an Excel-style column type. The text 00124 can be present in the file even if a spreadsheet application later displays it as 124. Inspect the import preview and compare a known SKU with your original data.
- Keep a stable SKU for each sellable item.
- Use one row per SKU; correct duplicate rows before confirming.
- Do not add spaces merely to force a numeric-looking code to display differently.
- Keep the exact code in photo filenames when using SKU-based matching.
Replace SKU formulas with text values
For an XLSX workbook, store numeric-looking product codes as text cells. LineSheetDesk does not execute formulas or macros. If a formula builds your SKU, convert it to a plain text value before uploading and verify the result in the mapping preview.
Match the same identifier across your files
A product with SKU 00124 can be matched with a deliberately named image such as 00124.webp. Renaming it to 124.webp prevents that exact match. When filenames differ, use the explicit image-reference field or make a manual match in the import workflow.
Keep codes stable across updates
Renaming a SKU can make an update look like a new product plus a missing old product. If a product name or price changes, keep the existing SKU. Review missing candidates carefully; they are not deleted automatically.
When opening a CSV in Excel
Use Excel’s text or CSV import workflow so you can check how the SKU column is interpreted, rather than assuming a double-click will preserve every identifier. Where the import offers column types, set the SKU column to Text before loading it. Menu names vary by Excel version; Microsoft’s import documentation explains the available methods.
Why a custom number format is not enough for an import
A number format can display 124 as 00124 while the underlying cell remains numeric. That display is not the same as storing the characters 00124 in a text cell. Check the actual values in the upload preview and correct the source before confirming.
If all your genuine codes have a known fixed length, Excel’s TEXT function can help build text values with that length. Verify the result against the original identifiers, then paste values before uploading. Do not guess a length for a mixed set of SKUs.
Sources and further reading
Useful next steps
Try it with a sample catalog
Explore six fictional products, compare customer prices and switch between three layouts before using your own data.