WooCommerce orders report cleanup

The orders report from WooCommerce → Analytics → Orders → Download, or several downloads joined into one file.

Processed locally in your browser. File contents are not uploaded. No account needed.

Before and after

Made-up rows from the sample file, run through the same code Rote Workspace runs, when this page was built. Removed rows are struck through; changed cells are highlighted — point at one for its old value.

Data Workspacewoocommerce-orders-report.csv5 rows · 11 columns · UTF-8 Processed locally

Original

Before: the sample file
RowOrder #CustomerNet sales
21042Ana Silva12.50
31043Ben Cole1,045.00
4 (removed)
51044Cy Diaz (has spaces at its edges)9.00
6 (removed)1043Ben Cole1,045.00

Result

After: WooCommerce orders report cleanup
RowOrder #CustomerNet sales
21042Ana Silva12.50
31043Ben Cole1045.00 (changed)
51044Cy Diaz (changed)9.00

3 rows × 11 columns after the fixes · was 5 × 11 · 3 cells changed

8 more columns are not shown; they pass through unchanged.

· marks a space at the start or end of a value. The dots are not in the data; they show spaces you would otherwise not see.

Why

Joining a few report downloads into one file repeats orders where the date ranges overlap, and money columns need to be numbers before they add up in a spreadsheet.

What it does

  1. Remove empty rowsOn the sample: 1 row removed
  2. Trim spaces in every columnOn the sample: 1 cell changed
  3. Read "Net sales" as numbers (decimal mark: dot, 1,234.56); values that are not numbers are left as they areOn the sample: 2 cells changed
  4. Remove duplicates: rows with the same "Order #" (blank keys never match), keeping the first of each groupOn the sample: 1 row removed

Your file needs these columns, spelled exactly: Order #, Net sales. If one is missing or renamed, the workflow tells you which step it breaks and does not run.

How to use it

  1. Download the workflow

    A small .json file with the steps above — no data. Want to try it first? Use the sample file (made-up rows).

  2. Open your export

    In the Data Workspace, choose your file. It is processed in your browser, not uploaded.

  3. Import, review, run

    Workflow → Import, choose the file — or skip the download: under Workflow → Templates, press Check & open. Each step is checked against your columns; press Run on this file, then Download.