Product CSV files look simple until one bad upload breaks hundreds of listings. A single trailing space in a SKU, a duplicate variant row, or a category value that does not match the marketplace taxonomy can create hours of manual cleanup.

This guide shows a practical pre-upload workflow for cleaning product CSV files before they go into Shopify, Amazon, an ERP, a PIM, or a marketplace feed.

Start with a product data audit

Before changing anything, create a backup copy and scan for the fields that usually cause upload failures.

FieldCommon problemFix
SKUSpaces, duplicates, mixed casingTrim, uppercase, check unique count
Product titleToo long, repeated brand namesStandardize title pattern
CategoryFree-text valuesMap to approved taxonomy
PriceText values, currency symbolsConvert to numeric format
VariantMissing color or size rowsValidate parent-child grouping

Step 1 — Standardize SKUs first

SKUs are the key that connects product data to inventory, orders, purchasing, and reporting. Clean them before you clean anything else.

=UPPER(TRIM(A2))

After trimming and uppercasing, create a duplicate check column:

=COUNTIF($A:$A,A2)

Any value greater than 1 should be reviewed before upload.

Step 2 — Normalize categories with a mapping table

A common mistake is trying to fix categories row by row. Instead, create a mapping table with two columns: current category and approved category.

Current categoryApproved category
Phone Acc.Electronics Accessories
phone accessoryElectronics Accessories
Parts - MobileElectronics Accessories

Then use XLOOKUP or Power Query Merge to apply the approved value across the full file.

Step 3 — Validate required fields

Most upload failures come from blank required columns. Create helper columns that flag missing values before you upload.

=IF(OR(A2="",B2="",C2="",D2=""),"Missing required field","OK")
For ecommerce feeds, required fields usually include SKU, title, price, category, inventory quantity, image URL, and product description. For ERP imports, required fields may include item type, unit of measure, vendor, tax code, and account mapping.

Step 4 — Clean prices and quantities

Remove currency symbols, commas, and hidden text formatting. In Power Query, use Replace Values to remove symbols and then set the data type to Decimal Number or Whole Number.

=VALUE(SUBSTITUTE(SUBSTITUTE(E2,"$",""),",",""))

Step 5 — Create an upload-ready validation tab

Before exporting, summarize errors by type:

This turns the CSV from a risky upload into a controlled workflow.

Need a product CSV cleaned?

ExcelOps can clean, validate, and format product spreadsheets for ecommerce, ERP, and marketplace uploads.

View CSV Cleanup Service →

FAQ

Should I clean CSV files in Excel or Power Query?
Use Excel formulas for one-time checks. Use Power Query when you receive the same messy export repeatedly and want the cleaning steps to refresh automatically.
How do I prevent broken SKU matching?
Trim spaces, remove non-printing characters, standardize casing, and make sure every system uses the same SKU format before using lookups or imports.

Related Articles