Excel Practice Test

Power Query is the part of Excel that turns a repetitive cleanup job into a button. It imports data from files, folders, databases, and web pages, records every transformation you apply, and replays the whole sequence on refresh. The best tips for using Power Query in Excel are less about obscure features and more about habits: how you name steps, where you set data types, how you build queries that survive a changed column, and when to stop clicking and write one line of M.

Power Query is the part of Excel that turns a repetitive cleanup job into a button. It imports data from files, folders, databases, and web pages, records every transformation you apply, and replays the whole sequence on refresh. The best tips for using Power Query in Excel are less about obscure features and more about habits: how you name steps, where you set data types, how you build queries that survive a changed column, and when to stop clicking and write one line of M.

This guide collects the tips that experienced users apply on every query, ordered from the first import to the final load. Each one comes with the exact menu path or formula so you can try it on your own workbook as you read. Nothing here requires Power BI or a database; a folder of CSV exports is enough to practice all of it.

Power Query ships with every Windows version of Excel since 2016 under the Get & Transform group on the Data tab, and with Excel for Mac since 2019 with a smaller connector list. If you are not sure which build you have, our guide to the latest Excel version shows where to check, and it matters because a few features below, such as the Data Model, are Windows only.

By the end you will be able to build queries that other people can refresh without calling you, that keep running when a source adds a column, and that produce tables ready for pivot charts and lookups instead of a second round of manual cleanup.

Power Query by the Numbers

📥
40+
Data connectors
🧾
1
Step per action
🔗
6
Join kinds
🗂️
1,000
Preview rows
⌨️
Alt+A+P+T
From Table/Range
🔁
1-click
Refresh All

Import the Right Way from the Start

Always import from an Excel Table, not a raw range. Convert the range with Ctrl+T first, give the table a real name on the Table Design tab, then use Data, From Table/Range. A named table keeps working when rows are added, while a range import breaks the moment someone inserts a row above it. The same rule applies to external files: point Power Query at a folder rather than a single file when the export lands monthly, and use Combine Files so every new file is picked up automatically.

Set Promote Headers and Changed Type deliberately rather than trusting the automatic steps. Power Query guesses types from the first two hundred rows, which is why a column of ZIP codes becomes a whole number and drops its leading zeros. Delete the automatic Changed Type step, do your cleaning, and add one type step at the very end where you can see every column.

Name each query for what it delivers, such as Sales_Clean or Customers_Deduped, before you load it. The name becomes the table name in Excel and the source name in every pivot, and renaming later ripples through formulas and connections. While you are at it, right-click any helper query and untick Enable Load so intermediate steps stay in the editor and do not clutter the workbook with extra sheets.

Use the Parameters feature for anything that changes between runs, such as a file path or a fiscal year. Home, Manage Parameters creates a named value that queries reference, so switching to a new folder or year is a single edit instead of a hunt through the Source step of five queries.

Try Free Excel Practice Questions on Data Tools

Cleaning and Shaping Tips That Save the Most Time

The Transform tab does in one click what used to take a column of formulas. Trim and Clean under Format remove stray spaces and non-printing characters that break lookups. Fill Down fixes reports where a category is typed once and blank underneath. Replace Values handles the odd null or N/A, and Remove Duplicates works on any combination of columns you select first. Apply these before you type any Excel formula, because the query will repeat them on every refresh for free.

Unpivot is the transformation that changes how people think about layout. A monthly report with January through December as twelve columns is easy to read but impossible to analyze. Select the month columns, choose Unpivot Columns, and you get one Month column and one Value column that a pivot table can group, filter, and chart. The reverse, Pivot Column, turns a long list back into a wide table when a manager wants the twelve columns back.

Split Column is Power Query's answer to the Text to Columns wizard, and it goes further: split by delimiter at the leftmost or rightmost occurrence, by number of characters, by positions, or by transitions between digits and letters. For the wizard's own tricks and when it beats a query, see our guide to the best ways to do advanced Text to Columns in Excel.

Column From Examples on the Add Column tab is the fastest way to derive a value. Type the result you want in the first row or two, such as the domain from an email address, and Power Query writes the transformation itself. Check the generated formula in the bar afterwards so you understand what it built, then keep it.

Free Excel Basic and Advance Questions and Answers
Mixed questions on data tools, Power Query, formulas and formatting from basic to advanced.
Free Excel Formulas Questions and Answers
Formula questions covering lookups, text functions, and aggregations used alongside queries.

Merging and Appending Without Surprises

📋 Merge (join)

Merge Queries joins two tables on one or more key columns, the way VLOOKUP does but without the fragility. Choose Left Outer to keep every row from the first table and bring matching columns from the second, Inner to keep only matches, and Left Anti to list rows that have no match, which is the fastest reconciliation report you will ever build.

Before merging, set both key columns to the same data type and trim them. A text key against a number key returns nothing, and a trailing space on one side silently drops matches. After the merge, expand only the columns you need; expanding everything doubles the table width and slows refresh.

📋 Append (stack)

Append Queries stacks tables with the same columns, which is how you combine twelve monthly exports into one year. Column names must match exactly, including case, or the mismatched column appears as a new column full of nulls. A quick Rename step in each source query before appending prevents this.

When the sources live in one folder, skip manual appends and use From Folder with Combine Files. Power Query builds a sample transform, applies it to each file, and appends the results, adding a Source.Name column so you always know which file a row came from.

📋 Fuzzy matching

Merge dialogs include a Use fuzzy matching option that joins Jon Smith to John Smith or ACME Corp to Acme Corporation. Set a similarity threshold, typically 0.8, and optionally supply a transformation table that maps known variants. It is the practical answer to customer lists typed by many hands.

Review fuzzy results before trusting them. Add the match score column in the advanced options, sort ascending, and inspect the weakest matches. Tighten the threshold if you see false pairs, and add exact rules for the cases that matter most.

Build Queries That Survive Changing Sources

The most common refresh failure is a column that was renamed or removed at the source, which breaks any step that references it by name. Reduce the risk by removing columns with Choose Columns rather than Remove Columns, because Choose Columns lists what to keep and ignores new arrivals, while Remove Columns fails when a named column disappears. Reorder as late as possible, and avoid it entirely if the order does not matter to the output.

Avoid hard-coded row positions. A step like Removed Top Rows 5 assumes the header sits on row six forever. Filter by content instead, for example keep rows where the first column is not null and not equal to Total, so the query still works when the report gains a title line. Use Table.PromoteHeaders after that filter, not before.

Put the Changed Type step at the end and check it after every source change. When a new column appears, add its type there rather than letting Power Query insert an automatic type step in the middle of your logic. Keeping types in one place also makes the query easier for a colleague to read six months later.

Set refresh behavior in Query Properties: tick Refresh data when opening the file for dashboards, and enable background refresh so users can keep working. If the workbook feeds pivot charts, our best ways to create custom pivot charts in Excel explain how those charts inherit the refreshed data without losing formatting.

Five Power Query Recipes Worth Memorizing

📁 Folder of monthly CSVs

From Folder, Combine Files, keep Source.Name, one type step at the end. Drop a new file in and press Refresh All.

↔️ Wide to long

Select the month columns, Unpivot, rename Attribute to Month and Value to Amount, then pivot chart by Month.

🔍 Reconciliation report

Merge two lists with Left Anti and again with Right Anti to show what is missing on each side, then append both results.

👥 Deduplicated customer list

Trim and lowercase the email column, Remove Duplicates on it, then merge back to pick the most recent record per customer.

🗓️ Running date table

Create a list from a start date to today with List.Dates, convert to a table, and add Year, Quarter, and Month columns for a reusable calendar.

Performance Tips for Large Data

Filter early. Every step processes the rows that reach it, so a filter on the first row of the query means every later transformation touches fewer rows. Remove columns you do not need before merging, and put Remove Duplicates before rather than after a join. On database sources these early steps are also folded back into the query the server runs, which is far faster than pulling everything into Excel first.

Watch for steps that break query folding. Once you add an index column, change a type to text, or use a custom M function, Power Query stops sending work to the database and does the rest locally. Right-click a step and check whether View Native Query is available; if it is grayed out, folding has stopped at that step. Move folding-friendly steps above the breaking one whenever possible.

Disable the preview refresh when working on slow sources. Under File, Options and Settings, Query Options, untick background data previews and reduce the number of preview rows. The editor stops re-running the query after every click, which is where most of the waiting on large files comes from.

For very large sources, load to the Data Model instead of a worksheet. A worksheet caps at about a million rows and slows down long before that; the Data Model compresses columns and handles tens of millions of rows, and pivot tables can read it directly. Tick Add this data to the Data Model in the Load To dialog.

Power Query vs Formulas for Data Cleanup

Pros

  • Every transformation is recorded and repeats on refresh
  • Combines whole folders of files in one query
  • Merge, append, unpivot and fuzzy match need no formulas
  • Type errors surface as clear step errors, not wrong numbers
  • Loads to the Data Model for millions of rows
  • Parameters make paths and periods a single edit

Cons

  • Results update only on refresh, not as you type
  • A renamed source column can break a step
  • The editor has a learning curve for first-time users
  • Some connectors and the Data Model are Windows only
  • Broken folding makes large database pulls slow
  • Colleagues must know to press Refresh All
Free Excel Functions Questions and Answers
Function questions on lookups, text, dates and aggregation that pair with query output.
Free Excel MCQ Questions and Answers
Multiple-choice Excel questions in the style of certification and screening tests.

A Little M Goes a Long Way

Every click in Power Query writes a line of M, the language behind the editor, and you can see it in the formula bar or under Advanced Editor. You do not need to write M to be productive, but reading it lets you fix a step in seconds. A step that says Table.SelectRows(#"Previous Step", each [Region] = "West") is a filter, and changing West to East in the bar is faster than rebuilding the filter through menus.

Three edits cover most needs. Change a hard-coded value to a parameter by replacing the literal with the parameter name. Make a column reference dynamic with Table.ColumnNames when the position matters more than the name. And wrap a fragile step in try ... otherwise to return a default instead of an error, for example try Number.From([Amount]) otherwise 0 in a custom column.

Custom functions turn one query into a reusable tool. Build the cleanup once on a sample file, convert the query to a function with a file-path parameter, and invoke it against every file in a folder. This is exactly what Combine Files does behind the scenes, and doing it by hand gives you full control over the sample transform.

Keep M readable. Rename steps by right-clicking them in Applied Steps so the sequence tells a story: Source, Filtered to 2026, Removed Totals, Typed. A query someone else can read is a query someone else can maintain, which is the real measure of whether it is finished.

Power Query Best-Practice Checklist

Import from a named Excel Table or a folder, never a bare range
Delete the automatic Changed Type step and add one type step at the end
Name queries for what they deliver and disable load on helpers
Use Choose Columns instead of Remove Columns
Filter by content, never by row position
Trim and type key columns before every merge
Unpivot wide monthly layouts before charting
Filter and remove columns early for speed
Check View Native Query to confirm folding on database sources
Rename Applied Steps so the query reads like a story

Common Mistakes and How to Avoid Them

The first mistake is loading every query to a worksheet. Helper queries and staging steps belong in the editor only; loading them creates extra sheets, slows refresh, and confuses readers. Right-click, untick Enable Load, and keep only the final table visible.

The second is trusting automatic types. Leading zeros vanish, dates flip between day-first and month-first, and decimals in European exports become thousands. Set the locale on the Changed Type step by choosing Using Locale, and inspect the column quality bar at the top of each column, which shows the share of errors and empties at a glance.

The third is building the query on a sample that is not representative. The editor previews a thousand rows, so a rare value on row 40,000 never appears until refresh fails. Enable column profiling based on the entire data set from the status bar before finalizing types and filters.

The fourth is forgetting that Excel outside the query still needs help. Loaded tables are plain tables, so lookups, COUNTIFS in Excel, and pivot tables all work as usual, but a formula pointing at a fixed cell range will not grow with the table. Reference the table by name in structured references and the formulas follow the data.

Practice Excel Formulas and Functions Free
Read the Applied Steps before you read the data
When a refresh fails, the error names the step. Click the step above it to see the data as it was, then the failing step to see what changed. Nine times out of ten the cause is a renamed source column or a type mismatch, and both are fixed in the formula bar without rebuilding anything.

Where Power Query Skills Pay Off

Power Query questions now appear in Microsoft Office Specialist Expert exams, in data analyst screenings, and in the practical stage of finance and operations interviews. Candidates who can combine a folder of files, unpivot a report, and merge two lists in ten minutes stand out immediately, because the alternative is an afternoon of copy and paste that everyone in the room has suffered through.

The skill transfers without change to Power BI, where the same editor and the same M language prepare data for every report. It also reduces the need for Excel VBA in most cleanup scenarios; a recorded query is easier to share and safer to run than a macro, and it needs no security prompt. Keep a personal Excel cheat sheet with the six transformations you use most and the shortcut into the editor.

If you manage recurring reports, adopt one rule this week: every cleanup that happens twice becomes a query. The first version takes longer than doing it by hand; the second and every one after take a click.

Version Notes and Further Practice

Power Query is built into Excel 2016 and later on Windows and appears as Get & Transform on the Data tab. Excel 2010 and 2013 need the free add-in from Microsoft. Excel for Mac added the editor in 2019 and gained From Folder and SQL connectors in later Microsoft 365 updates, but the Data Model and Power Pivot remain Windows only. Excel for the web can refresh some queries but cannot open the editor.

Practice with three files: a folder of monthly CSV exports, a wide report with months as columns, and two customer lists with slightly different name spellings. Combine, unpivot, and fuzzy merge them, then refresh after changing a source column name and fix whatever breaks. Every fix teaches a rule in the checklist above.

The free Excel practice tests below include data-tool and Power Query questions in the format used by certification and screening exams, and every answer comes with an explanation.

Free Excel Questions and Answers
Certification-style Excel questions across data tools, formulas, pivot tables and charts.
Free Excel Trivia Questions and Answers
Quick Excel trivia on shortcuts, features, and versions to test your recall.

Next Steps

Pick one report you clean by hand every month and rebuild the cleanup as a query today, following the checklist: table source, types at the end, Choose Columns, content-based filters, named steps. Refresh it once with new data to prove it holds.

Then add a parameter for the period, disable load on the helpers, and hand the workbook to a colleague with a single instruction: press Refresh All. If they can run it without you, the query is finished.

Keep practicing with the free Excel questions on this site. They cover data tools, formulas, and pivot reporting in the same style as certification exams, with an explanation for every answer so the reasoning sticks.

EXCEL Questions and Answers

What are the best tips for using Power Query in Excel?

Import from a named Table or a folder, delete the automatic type step and set types once at the end, use Choose Columns rather than Remove Columns, filter by content instead of row position, trim and type key columns before merging, unpivot wide reports, filter early for speed, and rename Applied Steps so the query reads clearly.

Why does my Power Query break when the source file changes?

Usually a step references a column that was renamed or removed, or a Removed Top Rows step assumes a fixed header position. Use Choose Columns, filter by content, keep one type step at the end, and read the failing step's formula; the fix is normally one name in the formula bar.

How do I combine many CSV files with Power Query?

Use Data, Get Data, From File, From Folder, point at the folder, and click Combine and Transform. Power Query builds a sample transform, applies it to every file, appends the results, and adds a Source.Name column. Drop new files in the folder and press Refresh All.

Is Power Query better than VLOOKUP for joining tables?

For joining whole tables, yes. Merge Queries handles left, inner, full, and anti joins on multiple keys, refreshes automatically, and can fuzzy match near-duplicates. VLOOKUP and XLOOKUP remain better for a single live lookup inside a formula.

How do I keep leading zeros in Power Query?

Delete the automatic Changed Type step that guessed the column as a number, do your cleaning, and set that column to Text in a final type step. If the zeros were already lost, add a custom column with Text.PadStart([Code], 5, "0") to restore them.

Does Power Query work in Excel for Mac?

Yes since Excel 2019, with an editor and common connectors such as tables, CSV, and folders added in later Microsoft 365 updates. The Data Model and Power Pivot are still Windows only, so keep Mac workbooks to worksheet loads.
▶ Start Quiz