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.
Original
| Row | Order # | Customer | Net sales |
|---|---|---|---|
| 2 | 1042 | Ana Silva | 12.50 |
| 3 | 1043 | Ben Cole | 1,045.00 |
| 4 (removed) | |||
| 5 | 1044 | Cy Diaz (has spaces at its edges) | 9.00 |
| 6 (removed) | 1043 | Ben Cole | 1,045.00 |
Result
| Row | Order # | Customer | Net sales |
|---|---|---|---|
| 2 | 1042 | Ana Silva | 12.50 |
| 3 | 1043 | Ben Cole | 1045.00 (changed) |
| 5 | 1044 | Cy 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
- Remove empty rowsOn the sample: 1 row removed
- Trim spaces in every columnOn the sample: 1 cell changed
- 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
- 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
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).
Open your export
In the Data Workspace, choose your file. It is processed in your browser, not uploaded.
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.