Keep Your Product Codes Intact When You Open a Supplier CSV
A spreadsheet can turn product code 00472 into 472 before you notice. Keep the original file, import codes as text, and check a small sample before updating the shop's records.
A supplier sends a new price file. You open it, tidy a few headings, and get ready to update your shop's products. Then one item refuses to match. Its code was 00472 in the supplier's catalog, but your spreadsheet now shows 472.
Nothing looks especially broken. The rows are neat, the prices look reasonable, and the file opens without a complaint. That makes this sort of mistake easy to carry into the next system. A few careful choices before you start editing can save an afternoon of playing detective with a box of replacement parts.
A product code is a name, even when it looks like a number
You can add quantities together. You can average prices. A product code has a different job: it identifies an item. Its opening zeros may be part of that identity, rather than decoration you can remove.
Spreadsheets sometimes make the wrong guess about a column. Excel can remove leading zeros, interpret certain letter-and-number combinations as dates, or treat codes containing the letter E as scientific notation. Long numeric codes need particular care because Excel's numeric precision is limited to 15 significant digits.
Microsoft explains these behaviors in its guide to keeping leading zeros and large numbers. The useful distinction is between numbers you calculate with and identifiers you need to preserve exactly.
Keep quantities and prices in the appropriate numeric columns. Treat product identifiers as text. Text here simply means the spreadsheet should keep the characters rather than try to do arithmetic with them.
Keep the supplier's original out of the editing pile
Save the original attachment in a clearly named folder before doing anything else. Make a working copy and give it a name that distinguishes it from the untouched file. You do not need an elaborate filing system; you need to know which version still contains what the supplier sent.
A CSV is a plain-text file arranged into rows and fields. It does not carry the spreadsheet's cell-formatting rules with it. Opening it in a spreadsheet asks that application to decide how to interpret the fields.
If a code looks suspicious, inspect a copy of the original in a plain-text editor without saving changes. That can help you tell whether the supplier sent 00472 or whether a later step removed the zeros. Keep sensitive business files on approved business devices rather than uploading them to an unfamiliar conversion website.
Import the file instead of opening it by habit
Double-clicking a CSV is convenient, but it can skip the moment when you tell the spreadsheet what each column means. In Excel, use the import route so you can set the product-code column to text before loading it into your worksheet.
- Start a blank workbook and choose Data, then From Text/CSV. Select your working copy.
- Open the editor from the preview. Depending on your Excel version, the button may say Edit or Transform Data.
- Select the product-code column and set its data type to Text. Do the same for other identifiers that must retain their exact characters.
- Check the transformation steps. If an automatic type-change step already converted the codes to numbers or dates, remove or replace that conversion so the text column comes from the original source values. Turning an already altered number into text will not bring its missing characters back.
- Review the preview, then use Close & Load to bring the data into the workbook.
Menu names vary, so follow the instructions for your version if the screen differs. Some newer Excel versions also have Automatic Data Conversions settings. Those controls can help, but a deliberate import and a preview check are still useful habits when a supplier changes a file.
If you type codes manually, format the empty destination column as Text first. Changing the format after entering a long number may be too late to preserve its original digits.
A tidy display does not prove the code survived
A custom number format can make 472 appear as 00472 on screen. That can be useful for presentation inside a workbook, but it is different from keeping the identifier as text for another system.
Imagine that your shop receives both 472 and 00472 as valid, distinct supplier codes. Padding everything to five digits would erase that distinction. Even if your current supplier uses fixed-length codes, confirm that rule before adding zeros to anything.
If a long code has already lost digits, or a date conversion has changed its meaning, go back to the untouched source. Do not guess what belongs there. A plausible-looking identifier can match the wrong item, which is a much less obvious problem than an import that refuses to run.
Try a small sample before the full update
Choose a few awkward rows for a test: an identifier beginning with zero, your longest identifier, one containing letters, and an ordinary item you recognize. Include any unusual punctuation your supplier actually uses. You are checking how the process handles real exceptions, rather than whether the first row happens to behave.
Compare each selected code character by character with the original file. Check the associated description, quantity, and price too. A preserved code attached to the wrong price is still a bad update.
Before importing into your stock or sales software, read that tool's own import instructions. Find out which field it uses to match existing products and whether the action updates records or creates new ones. Use a preview, validation mode, or separate test area if the tool provides one. Those features vary, so do not assume your software has them.
If it does not offer a safe way to test, ask its support team how to validate the file without changing live records. Keep a current export or backup through the tool's supported process before any bulk update. After the update, inspect those same sample products in the destination system.
Leave the next person a useful import note
Once you have a process that works, record the few details someone else would need: where the original file lives, which columns are text, what matches an existing product, and which sample items you check. Include the supplier's file date so nobody mistakes last month's prices for today's delivery.
Save your working workbook separately if you need to retain import settings or notes. If the receiving tool requires CSV, export the requested format and validate that exported file using the same careful import approach. Simply reopening it by double-click can trigger fresh conversions and confuse the check.
For the next supplier file, begin with the untouched original and a handful of recognizable products. When 00472 arrives as 00472 in the destination, with its description and price still beside it, you have checked the part that matters.