Go straight to the guide
LaneMile

UPC spreadsheet errors: 4 fixes before importing

LaneMile Editorial Team · Published · 9 minute read

Sources checked

Scope: use the jurisdiction stated in the guide and its sources.

LaneMile drafting rules: editorial standards.

Fix UPC spreadsheet errors by restoring full digits, checking leading zeros, sorting full rows for short codes, and splitting oversized import files.

Key takeaways

  • Check shorthand codes against the supplier's original file.
  • Confirm a missing zero before adding it.
  • Keep each part's full row together when sorting.
  • Check your software's file limit before importing.

Inventory software matches each scan to a UPC. If the UPC you import is wrong, the wrong number goes into your system. The scanner at the counter or on the receiving dock then finds nothing, or finds the wrong part, and someone ends up searching by hand while a customer or a driver waits.

Most UPC problems in a parts or supply file don't come from the supplier. They come from how the spreadsheet handles numbers, and they tend to slip in during the steps you take to get a list into the file: pasting, saving, sorting, or editing a column. Four patterns cause most of them. Long numbers can show up in scientific notation. Leading zeros can disappear. Some UPCs come out too short. And a file can hold more rows than one import accepts. Each one is simple to find and simple to fix once you know what to look for.

Dispatchers often build the list, and shop staff often load it, so this post is written so either person can run these checks.

This post covers UPC cells and the file they sit in. It doesn't cover prices, quantities, or part descriptions, which have their own quirks. For related recordkeeping, see customer asset management.

The sections below take the four in that order. Each one explains what the error looks like, why it happens, how to fix it, and how to spot it across the whole file. The last section works through one example from start to finish.

Scientific notation turns long UPCs into shorthand

Spreadsheet programs are built to handle numbers of every size, and a long run of digits is just a big number to them. When a cell is set up to show large values, it may display the number in shorthand instead of the digits you typed or pasted. A UPC or EAN that should look like a plain string of digits can end up showing a letter E and a plus sign, like 4.001E+11.

That shorthand is the first thing to look for. On a long list it's easy to miss, so scan the whole UPC column, not just the rows that happen to be on screen. Any cell with an E and a plus sign in it needs fixing before the file goes anywhere.

Why does this matter so much? A scanner reads every digit printed on a package. If the cell holds a rounded value, the number you import is missing digits, so the scan at the counter finds no match even when the part is sitting on the shelf in front of you. Here is how it plays out. A dispatcher loads a supply list, and the rows with shorthand UPCs import without any warning. Later, a shop tech scans a box of those supplies, gets no match, assumes the item was never loaded, and orders it again.

The Lightspeed Retail (R-Series) help article on adding items to a purchase order advises changing scientific numbers in UPC or EAN cells to regular integers.

Two things come from that advice. The scientific form usually shows up in UPC and EAN columns, so those are the columns to scan first. And the target is a regular integer, meaning the cell holds the full run of digits with no shorthand left in it.

Don't rebuild the number from what's on the screen. The shorthand hides digits, so the display can't tell you what the full value was. Go back to the supplier's original file, catalog, or email, copy the full UPC from there, and enter it as a regular integer.

Pasting a list into a new sheet is one way a long number can change format, so it's worth looking at the UPC column right after the paste, before you make other edits. If only some cells in the column show shorthand, fix those cells one at a time instead of reformatting the whole column and hoping the rest follow. A column that mixes shorthand with full codes is a sign that the paste changed some rows and not others.

If the supplier's own file already shows shorthand, the problem started before your copy. Tell the supplier, and ask for a file where the UPC column holds plain digits.

Leading zeros go missing

Some UPCs begin with a zero, and that zero is part of the code printed on the package. Some spreadsheet software will remove the leading 0 from UPC numbers. When that happens, the number left in the cell is one digit shorter than the code on the product, and a scan of the real item will not match it.

The problem is quiet. Nothing in the cell announces it. A UPC that lost its zero still looks like a number, so it's easy to read past while you scroll. Picture a counter sale where the code in the system is one digit short. The tech scans the package, the system reports no item, and the part sits on the shelf the whole time.

A UPC is a label, not a quantity. It identifies a product the way a name tag does, so its digits have to match the package exactly, and no math should ever be done on it. A zero in front of a number doesn't change its value, which is part of why it's easy to lose.

You don't have to hunt for these one at a time. A dropped zero is one reason a UPC comes up short, and the digit-count sort in the next section lines up every short code in one place.

For an 11-digit UPC, add a leading zero only after confirming it is missing against the supplier's file. A UPC that already has its full length should stay exactly as it is, because adding a zero to a complete code changes it into a different number.

Once you've added the zero, the cell should hold it. If the zero disappears after you type it, stop and look at how that column is set up before you retype more rows, since retyping into the same setup may not hold the zero either.

Keep in mind that the zero corrects the number you enter, not the part. The UPC on the package stays the same, and your cell has to match it.

Short UPCs hide in a sort

Typical UPCs are 12 digits long, so the length of each code is a quick test for the whole column. Sort the list by the UPC column, and any code with 11 digits or fewer will stand out from the rest. Those are the rows to fix.

Sort the full rows, not just the UPC column. If you sort one column alone, the UPCs stop lining up with the part names, descriptions, and quantities beside them, and the file is badly damaged in a way that's hard to undo.

Sorting also helps with the first error. A shorthand cell may land away from the codes around it, which makes it easier to spot once the column is in order.

A short UPC is a flag, not proof that the code is wrong. A dropped leading zero is one reason a code comes up short, and the previous section covers it. Other causes include a digit lost while the number was typed or pasted in.

Look at the pattern, too. If one or two codes come up short, fix those rows one at a time. If many codes come up short at once, look at how the whole column was set up rather than fixing rows one by one, because the same cause is probably behind all of them.

Fixing a row can move it when you sort again, so work through the short codes from the top of the sorted list instead of re-sorting after every change. The test is codes with 11 digits or fewer, not every code that isn't 12, because 12 is a typical length rather than a rule for every code.

The table below lines up the three cell errors with what to check in the file.

Error What to check How it shows up
Scientific notation Full digits against the supplier's file Letter E and a plus sign in the cell
Missing leading zero Whether the original code begins with a zero Short code in the sort
Short UPC 12 digits typical; check 11 or fewer Codes with 11 digits or fewer after the sort

Oversized files need splitting

The fourth error doesn't live in any single cell. It lives in the file as a whole. In Lightspeed Retail (R-Series), an import file can have a maximum of 500 items, so a parts list longer than that can't go in as one file. Split it into smaller files that fit that limit.

The limit applies to each file, not to the full list. A file with exactly 500 items is within the limit, and a list that runs past that count is split into as many files as it takes.

Splitting is the right route, not a workaround. In Lightspeed Retail (R-Series), a large batch of items comes in through a spreadsheet import instead of being added one at a time, so a long list still belongs in the import. You just break it into pieces that each fit under the limit.

Most spreadsheet programs let you select a block of rows and copy it to a new file. Repeat that with the next block until every row is placed.

Do the splitting last. Make the fixes from the first three sections on the whole list, then split it, so every piece already carries corrected UPCs and you aren't repeating the same work across several files. Because the sort was done on the whole list, the pieces keep that order, which makes their short codes easy to find.

Copy the header row, the one with your column names, to the top of every file so each piece has the same layout.

Don't reduce the list by deleting rows until it fits. For a separate check of physical stock storage, see stacking construction materials safely.

Illustrative example: checking a supply list

Imagine a supply list with a shorthand UPC and enough items to need separate files.

Enter the full digits. Open the supplier's original file and copy the full UPC from there. Enter it as a regular integer.

Sort and count the digits. Sort the full rows by the UPC column. If the UPC matches the supplier's full code, leave it as it is.

Only then start the import, beginning with the first file and moving to the next only after it finishes.

Today, make a copy of your supply file and check its UPC column before starting the import.

Questions before importing

What should I do with an unconfirmed short code?

Leave that row out of the import for now and deal with it separately. Check the full code before including the part in a later file.

Does the file limit apply to other inventory software?

Check your own inventory software's limit before splitting the list. The limit discussed above applies to Lightspeed Retail (R-Series).

Sources for this guide

This guide provides general information, not legal, tax, financial or safety advice. LaneMile is not a regulator, load broker, dispatch service or compliance certifier. Apply the authority and vendor guidance for your own operation.