The first thing most people do when they see the Transform Data button on the Data tab is click it—then panic when their spreadsheet vanishes into a gray Power Query editor window. That’s not transforming data. That’s opening the door to chaos without knowing where the exit is.
The Setup
You inherit a sales report from three regional managers: raw exports pasted into separate sheets, inconsistent date formats, mixed casing, duplicate IDs, and currency symbols buried in text. No formulas. No structure. Just noise.
| ID | Name | Region | Amount | Date |
|---|---|---|---|---|
| A-702 | li wei | East | $12,450.00 | 2024/02/14 |
| B-319 | Sarah Chen | WEST | ¥98,200 | 15-Mar-24 |
| C-441 | Miguel R. | central | 14,750 | 03/22/2024 |
| A-702 | Li Wei | East | $12,450.00 | 2024/02/14 |
| D-887 | Anya Petrova | North | €6,290.50 | 2024-04-01 |
| E-205 | James T. | SOUTH | 18,320 | Apr 5, 2024 |
| F-112 | Rajiv Mehta | east | ₹1,024,800 | 2024.03.19 |
| G-553 | Yuki Tanaka | West | ¥104,600 | 2024/03/28 |
The Challenge
You need one clean table: standardized region names (East/West/North/South/Central), USD-only Amounts as numbers (not text), proper Date values (not strings), and no duplicates like A-702 appearing twice. You also need to keep this process repeatable next month.
Doing this manually with FIND/REPLACE, VALUE(), DATEVALUE(), and TRIM() across 12 columns and 1,400 rows? You’ll miss something. And if the source changes format next time, you’ll redo it all.
That’s why ‘transform data’ exists—not as a button to click, but as a verb: to apply a sequence of reproducible edits. Not formatting. Not formulas. Edits that live inside Power Query—and only execute when you hit Close & Load.
Walking Through It
Start with the raw table in A1:E9. Select any cell inside it. Press Alt + A + T — that’s the keyboard shortcut for Data → Transform Data. Don’t click the ribbon. Alt shortcuts prevent accidental clicks on ‘From Table/Range’ instead.
You land in Power Query Editor. The left pane shows Queries. The center shows your table. Right pane shows Applied Steps.
Step 1: Promote Headers
Right-click column 1 → ‘Use First Row as Headers’. Now headers are ID, Name, Region, etc. This step fixes the misaligned header row that came from copy-paste.
| ID | Name | Region | Amount | Date |
|---|---|---|---|---|
| A-702 | li wei | East | $12,450.00 | 2024/02/14 |
| B-319 | Sarah Chen | WEST | ¥98,200 | 15-Mar-24 |
Step 2: Clean Region
Click the Region column header → Transform → Format → Lowercase → then Transform → Format → Capitalize Each Word. Now ‘west’ becomes ‘West’, ‘central’ → ‘Central’. Done in two clicks. No formula. No risk of breaking other columns.
Step 3: Standardize Amounts
Select the Amount column → Transform → Data Type → Currency. Power Query auto-detects ¥, €, ₹, $ and converts them to USD using current exchange rates *only if you’ve configured that*. But you haven’t — so it fails on ¥ and ₹. Instead: Transform → Format → Remove Characters → type ‘¥€₹’ → OK. Then change data type to Decimal Number. Now all values are clean numbers.
Surprising tip: If you skip removing symbols first and go straight to Decimal Number, Power Query silently converts ¥98,200 to 98200 — ignoring currency. It doesn’t warn you. That’s why previewing each step matters.
Step 4: Fix Dates
Select Date → Transform → Date → From Date/Time. Fails on ‘15-Mar-24’. So instead: Transform → Format → Replace Values → find ‘-‘ replace with ‘/’ → then try From Date/Time again. Or better: Transform → Date → Parse → Using Locale → English (United States). That handles ‘2024.03.19’ and ‘Apr 5, 2024’ in one shot.
Step 5: Remove Duplicates
Home → Remove Rows → Remove Duplicates → select only ID column. A-702 disappears once. No risk of deleting valid rows with same name or amount.
The Result
After all steps, click Close & Load. Excel drops a new table starting at A1 of a new sheet. Here’s exactly what you get:
| ID | Name | Region | Amount | Date |
|---|---|---|---|---|
| A-702 | Li Wei | East | 12450 | 2024-02-14 |
| B-319 | Sarah Chen | West | 98200 | 2024-03-15 |
| C-441 | Miguel R. | Central | 14750 | 2024-03-22 |
| D-887 | Anya Petrova | North | 6290.5 | 2024-04-01 |
| E-205 | James T. | South | 18320 | 2024-04-05 |
| F-112 | Rajiv Mehta | East | 1024800 | 2024-03-19 |
| G-553 | Yuki Tanaka | West | 104600 | 2024-03-28 |
What Could Go Wrong
Mistake #1: Editing the loaded table instead of the query
You fix a typo in the final sheet — say, changing ‘CentraL’ to ‘Central’ in cell C6. Next refresh? Power Query overwrites it. Your manual edit vanishes. Always edit in Power Query, never downstream.
Mistake #2: Forgetting to set data types before filtering
If Amount stays as Text and you filter ‘greater than 50000’, Power Query compares strings: ‘1024800’ < ‘6290.5’ alphabetically. You’ll get zero rows. Set data types early — before any logic.
Mistake #3: Loading to worksheet instead of Data Model
You need PivotTables later? Don’t load to a worksheet. In the Close & Load dropdown, choose ‘Close & Load To…’ → ‘Only Create Connection’ + check ‘Add this data to the Data Model’. Otherwise, you’ll hit row limits and can’t build relationships.
Here’s what to do next:
| Action | Shortcut / Path | Why |
|---|---|---|
| Open Power Query Editor | Alt + A + T | Faster than hunting the ribbon — and avoids wrong ‘From’ options |
| Undo last step | Ctrl + Z (in editor) | Works inside Power Query — unlike Excel’s undo stack |
| Refresh all queries | Alt + A + R | Updates every loaded query — no need to open each one |
| View applied steps | Right pane → ‘Applied Steps’ | Each step is editable, reorderable, deletable — your audit trail |