Excel Practice Test

โ–ถ

If you have ever ended a long week with seven workbooks open at once โ€” regional sales, branch inventory, a contractor's invoice tracker โ€” and someone asks for a single combined report by Monday, you already understand why how to merge Excel sheets is one of the most searched Excel questions on the internet. The phrase looks simple. The reality is that Excel has at least three different jobs hiding behind that one verb, and picking the wrong one wastes hours.

Merging in Excel can mean stitching multiple tabs inside the same workbook into one master tab. It can mean pulling 20 separate files from a folder into one big sheet. It can also mean joining two datasets together by a shared key โ€” the sort of thing a SQL person would call a join, and an Excel person calls VLOOKUP, XLOOKUP, or a Power Query merge.

Each task uses a different tool. Trying to solve a folder-of-files problem with VLOOKUP, or a join problem with Move or Copy, is the spreadsheet equivalent of trying to open a tin can with a screwdriver.

This guide walks through all three. You will see when to right-click a tab and pick Move or Copy, when to fire up Power Query and append a folder of files, when to write a small VBA loop because the data lives in 200 workbooks nobody wants to open by hand, and when a single XLOOKUP solves the problem in a minute.

Every method here is built into Excel โ€” no add-ins, no paid tools, nothing that goes away when IT updates Office. By the end you will know exactly which path to take the next time someone drops a stack of spreadsheets on your desk.

Excel Sheet Merge Methods โ€” at a Glance

Memory
Sheets per Workbook Limit
Thousands
Power Query Folder Limit
<10 sec
Move or Copy Speed
90%+
Time Saved vs Manual

What People Actually Mean by Merge Excel Sheets

Before opening Excel, name the problem. Three jobs hide under the same phrase, and they need three different tools.

Job 1 โ€” Stack Multiple Sheets Into One Sheet

You have a workbook with twelve monthly tabs, each with the same column headers โ€” Date, Region, Product, Units, Revenue. You want one tab with all the rows underneath each other so a pivot table can read the whole year at once. This is an append, sometimes called a union. The right tool is Power Query > Combine Queries > Append, or a quick VBA loop if you do it once and walk away.

Job 2 โ€” Pull Many Files Into One File

You have a shared folder where each branch drops a weekly file named branch-04-2026-week-19.xlsx. Twenty branches times fifty-two weeks is over a thousand files a year, all with the same layout. You need them all in one workbook so head office can analyze them. The right tool is Power Query > Get Data > From File > From Folder. Excel reads every file in the folder, stacks them, and refreshes when new files arrive.

Job 3 โ€” Join Two Sheets on a Shared Key

You have a customer list with name and customer ID, and a separate orders list with customer ID, date, and amount. You want one combined view โ€” name, date, amount โ€” joined on customer ID. This is a join, not an append. The right tool is XLOOKUP, VLOOKUP, INDEX-MATCH, or a Power Query Merge (not Append). The data does not stack โ€” it lines up side by side.

Get the job right and the tool picks itself. Get it wrong and you waste an afternoon.

Decision Shortcut

Same columns across tabs or files? You need an append โ€” use Power Query Append or Get Data From Folder. Different columns that share a key like customer ID or product code? You need a join โ€” use XLOOKUP, VLOOKUP, or Power Query Merge. When in doubt, look at the headers. If they match, stack them. If they do not, join them.

Method 1 โ€” Move or Copy for a Handful of Sheets

Move or Copy is the simplest way to merge Excel sheets when the data lives in two or three workbooks and you only need to do it once. Open every source workbook plus your destination workbook so they all appear in the same Excel window. Right-click any sheet tab in a source workbook and pick Move or Copy. In the dialog, change the To Book dropdown to your destination workbook, pick the position, tick Create a Copy if you want to keep the original in place, and click OK. The tab jumps across, formulas, formatting, and all.

Repeat for each tab you want to bring over. Five minutes and you are done. It is not elegant, but for a five-tab merge once a quarter it beats setting up a query.

The catch โ€” Move or Copy gives you many tabs inside one workbook. It does not stack them into one tab. If your goal is one single tab with all the rows, you still need an extra step. Either copy each tab's rows underneath the previous one by hand (fine for three small tabs, painful for ten), or use Power Query Append on the moved tabs, which is the next method.

Method 2 โ€” Power Query Append for Same-Shape Sheets

Power Query lives on the Data tab in every modern version of Excel. It is a free, built-in tool that reads data from almost anywhere, transforms it with clicks instead of formulas, and writes the result into a sheet you can refresh whenever the sources change. For merging sheets, Append is the move.

Start by turning each sheet you want to merge into an Excel Table โ€” click anywhere in the range and press Ctrl+T. Give each table a clear name in the Table Design tab (Sales_Jan, Sales_Feb, and so on). Then on the Data tab, click Get Data > From Other Sources > Blank Query, or right-click any table and pick Get Data > From Table/Range to start a query for each one.

Once each table is loaded into the Power Query Editor (you will see it under Queries & Connections), click Home > Append Queries > Append Queries as New. Pick Three or More Tables, move all your tables to the right pane, and click OK. Power Query stacks them in column order โ€” so column headers must match exactly. Hit Close & Load and the result lands on a new sheet. The big payoff comes the next month โ€” add new rows to any source table, then Data > Refresh All, and the combined sheet updates instantly.

Which Merge Method Fits Your Situation

๐Ÿ”ด Few Tabs, One Time

Use Move or Copy by right-clicking each sheet tab, then either copy rows underneath each other manually or run a quick Power Query Append on the result. Best when the merge is a one-off and the source workbooks already live on your desktop. Takes minutes, no setup, no refresh needed.

๐ŸŸ  Same Columns, Many Tabs

Use Power Query Append Queries as New. Turn each tab into an Excel Table, load each into Power Query, then append them all into one master query. The merged result refreshes with one click whenever any source tab changes. Perfect for monthly tabs in the same workbook.

๐ŸŸก Many Files in a Folder

Use Power Query Get Data From Folder. Point Power Query at the folder, let it discover every file inside, and combine them automatically. When a new file lands in the folder next week, refresh and it joins the merge. Ideal for branches, contractors, or daily exports.

๐ŸŸข Different Columns, Shared Key

This is a join, not a merge โ€” use XLOOKUP, VLOOKUP, or Power Query Merge Queries. Match rows by customer ID, product code, or any unique field, and the result is one wide table with columns from both sources. Use when datasets describe the same things from different angles.

Method 3 โ€” Get Data From Folder for Bulk File Merge

The single most powerful merge method in Excel handles the case most people give up on โ€” twenty, fifty, or a thousand workbooks sitting in a folder. Doing that by hand is a full day's work. Power Query does it in under a minute and refreshes every week from then on.

Put every source file into one folder. They must share the same sheet layout โ€” same column headers in the same order. Subfolders are fine, Power Query walks them recursively. On the Data tab, click Get Data > From File > From Folder. Browse to your folder and click OK. Power Query shows a preview of every file it found โ€” file name, date modified, path, and the binary contents.

Click Combine & Transform Data. Excel asks which sheet inside each file to combine โ€” pick the one you want (often Sheet1 or a named sheet) and click OK. Behind the scenes Power Query builds a helper function that opens every file, extracts the chosen sheet, and stacks the results. You land in the Power Query Editor with all the rows already merged, plus a Source.Name column showing which file each row came from. Clean up anything weird (filter out blank rows, fix column types) and click Close & Load.

From now on, every time a new file lands in the folder, click Data > Refresh All. The merge picks up the new data automatically. This single workflow has replaced entire reporting teams at companies that used to consolidate files by hand every Monday morning.

Method 4 โ€” VBA Loop for When Power Query Is Not an Option

Power Query covers most cases, but sometimes you cannot use it โ€” corporate-locked Excel, files with wildly different layouts, or a one-off job for a colleague who only has Excel 2010. VBA still handles all of these.

Press Alt+F11 to open the VBA editor. Insert > Module, then paste in a short loop. Something like this works for stacking a folder of files into one sheet โ€” adjust the folder path, the sheet name, and the start row to match your data:

Sub MergeAllFiles()
  Dim folder As String, file As String
  Dim wb As Workbook, dest As Worksheet
  folder = "C:\Reports\"
  Set dest = ThisWorkbook.Sheets("Master")
  file = Dir(folder & "*.xlsx")
  Do While file <> ""
    Set wb = Workbooks.Open(folder & file)
    wb.Sheets(1).UsedRange.Offset(1).Copy dest.Cells(dest.Rows.Count, 1).End(xlUp).Offset(1)
    wb.Close False
    file = Dir
  Loop
End Sub

Run it once with F5 and every .xlsx in the folder dumps its rows into your Master sheet. The Offset(1) skips the header on each source file so you do not end up with the header line repeated. Save the file as .xlsm so the macro sticks around for next time.

Step-by-Step Walk-Throughs

๐Ÿ“‹ Move or Copy Dialog

  1. Open every source workbook and the destination workbook so they all appear in the Switch Windows list.
  2. Right-click the sheet tab you want to move, at the bottom of the source workbook.
  3. Click Move or Copy in the context menu.
  4. In the To Book dropdown, pick the destination workbook (or pick New Book to create one).
  5. Choose the position in the Before Sheet list โ€” usually move to end.
  6. Tick Create a Copy if you want the tab to stay in the original workbook too.
  7. Click OK. The tab appears in the destination, complete with formulas, formatting, and named ranges.
  8. Repeat for each tab. To bulk-select tabs, Ctrl-click multiple tabs before right-clicking.

๐Ÿ“‹ Power Query Append

  1. Convert each source range to an Excel Table with Ctrl+T and give each one a clear name in Table Design.
  2. Click anywhere inside the first table, then Data > From Table/Range to load it into Power Query.
  3. In the Power Query Editor, click Close & Load To... and pick Only Create Connection.
  4. Repeat for every table you want to merge.
  5. Back on the Data tab, click Get Data > Combine Queries > Append.
  6. Pick Three or More Tables, move all your queries to the right pane, click OK.
  7. Verify column headers line up. Rename columns in Power Query if any source uses a different label.
  8. Click Close & Load. The merged data lands on a new sheet. Refresh anytime with Data > Refresh All.

๐Ÿ“‹ Get Data From Folder

  1. Put every source file into one folder. Subfolders are fine โ€” Power Query walks them all.
  2. On the Data tab, click Get Data > From File > From Folder.
  3. Browse to the folder and click Open, then OK.
  4. Power Query shows a preview of every file found. Click Combine & Transform Data.
  5. In the Combine Files dialog, pick the sheet name inside each file (often Sheet1).
  6. Power Query opens the Editor with all rows already stacked, plus a Source.Name column.
  7. Filter out any helper rows, fix column types, rename columns if needed.
  8. Click Close & Load. To pick up new files later, just save them into the folder and hit Data > Refresh All.

๐Ÿ“‹ VBA Macro Approach

  1. Press Alt+F11 to open the VBA editor.
  2. Click Insert > Module.
  3. Paste in a loop that opens every file in a folder and copies its rows into a Master sheet (see code in the article).
  4. Edit the folder path string at the top of the macro to point at your folder.
  5. Adjust the source sheet index or name to match where your data lives in each file.
  6. Close the editor, then press Alt+F8 in Excel, pick MergeAllFiles, and click Run.
  7. The macro opens each file, copies the used range below the header, and closes the file without saving.
  8. Save your workbook as .xlsm so the macro stays available for next time. Run it again any week the folder fills up.

How Do You Merge Excel Sheets Into One File

If the question is how to merge Excel documents into one file rather than into one sheet, the path is shorter. Open the destination workbook, then open each source workbook. Right-click any tab in a source workbook, pick Move or Copy, change To Book to your destination, tick Create a Copy, and click OK. The whole tab โ€” every formula, every chart, every named range โ€” lands in the destination workbook with a single click. Repeat for each tab in each source file. Five minutes for five files, less than half an hour for twenty.

What you get is one workbook with many tabs, not one big stacked sheet. That is usually what people mean by merge multiple Excel sheets into one file โ€” they want one .xlsx they can email, not a single mega-table. If you also need a stacked version for analysis, run Power Query Append on the moved tabs afterwards. Two steps, one file, every formula preserved.

How to Merge Sheets Into One Sheet in Excel

The opposite case โ€” multiple tabs in one workbook, and you want a single tab holding every row โ€” is the classic Power Query Append job. Convert each tab to a Table with Ctrl+T, load each Table into Power Query as a connection-only query, then Append Queries as New across all of them. The merged Table lands on a fresh sheet and refreshes whenever a source tab changes. This is the workflow used by every analyst who has ever inherited a workbook with twelve monthly tabs and a request for an annual chart.

Test Your Excel Skills

Power Query Combine vs Append โ€” Same Thing

Two terms float around in tutorials and they confuse beginners. Combine and Append in Power Query mean essentially the same job โ€” stacking rows on top of each other where the columns line up. Combine is the wider menu label, used when Power Query helps you point at multiple sources (like a folder full of files). Append is the specific transform that stacks two or more existing queries into one.

If you load each file or sheet into its own query first, you Append. If you start from a folder and let Power Query discover the files, you Combine โ€” and behind the scenes, Combine writes an Append for you. Same output, different starting point.

When Joining Beats Appending

Job 3 from earlier โ€” different columns, shared key โ€” needs a join, not an append. If your customer table has Name and Customer_ID, and your orders table has Customer_ID, Date, and Amount, appending them produces a useless lump with half the cells empty. Joining them produces one row per order with the customer's name attached. The classic Excel join is XLOOKUP, which replaced VLOOKUP in 2020 and works in both directions, returns multiple columns at once, and handles errors gracefully. The formula =XLOOKUP(C2, Customers[Customer_ID], Customers[Name]) drops the customer's name next to every order. Drag down, done.

For bigger jobs, Power Query Merge does the same thing visually with no formulas. Load both tables as queries, then Home > Merge Queries, pick the key column in each, choose the join type (Left Outer, Right Outer, Full Outer, Inner), and expand the result. The output is a refreshable joined table sitting in your workbook.

Merge Excel Sheets Checklist

Name the job first โ€” are you stacking same-shape data (append), pulling files from a folder (combine), or matching by a shared key (join)? The answer picks the tool
Match column headers exactly across every source before any append-style merge โ€” Power Query stacks by column name, so <em>Customer</em> and <em>Customer Name</em> become two separate columns
Turn each source range into an Excel Table with Ctrl+T before loading into Power Query โ€” Tables grow automatically when you add rows, so the merge stays in sync
Use Get Data > From Folder for any merge involving more than three files โ€” saves an hour per week the moment you set it up
Add a Source.Name column when combining files so you can always trace any row back to the file it came from โ€” Power Query adds this automatically when you use From Folder
Save VBA-based merges as .xlsm and macro-protect the file so the macro stays available for next time
Refresh All (Data > Refresh All or Ctrl+Alt+F5) every time you open a workbook with Power Query merges โ€” picks up any new rows in source tabs or files
Pick Append for stacking, Merge for joining inside Power Query โ€” they look similar in the menu but produce totally different results
Skip header rows in VBA loops with Offset(1) so the column titles do not repeat above every block of data in the master sheet
Document the merge โ€” leave a comment in the workbook or a README next to the source folder explaining how the data flows so the next person does not have to reverse-engineer it

Common Mistakes When Merging Excel Sheets

The fastest way to make a merge fail is mismatched headers. Power Query stacks rows by column name, so two slightly different headers split your data across two columns. Standardize every source before you start โ€” or fix the names in Power Query with a Rename Columns step right after the source is loaded.

The second-biggest mistake is mixing append and join. If you find yourself with rows half-full of nulls after a merge, you needed XLOOKUP or Power Query Merge, not Append. Reverse the call. Joining puts columns side by side, appending puts rows on top of each other. They produce wildly different outputs.

The third mistake is forgetting to refresh. Power Query merges do not update by themselves. After source data changes, you must hit Data > Refresh All. Set it in your monthly checklist or schedule a refresh on workbook open (File > Options > Advanced > General > Ask to update automatic links โ€” turn this on, or use Connection Properties to auto-refresh).

How to Merge the Excel Sheets When the Layout Is Different

Real-world files are rarely perfectly aligned. Branch 4 has an extra column for State. Branch 7 puts Date in the second column instead of the first. Branch 12 added a Notes column. Power Query handles all of it gracefully โ€” Append Queries does not require identical column counts.

Columns that exist in one source but not another get filled with null in the merged result. You can drop or keep those columns afterwards. For columns that mean the same thing but are named differently, add a Rename step in each source query before the Append so the data lines up correctly.

For really messy layouts where the data starts at different row positions in each file, add Promote Headers and Remove Top Rows steps inside each source query to normalize the shape before the Append. Five extra clicks and the merge handles any layout you throw at it.

Power Query Merge โ€” Pros and Cons

Pros

  • Free, built into every modern Excel โ€” no add-ins or paid tools required
  • Handles thousands of files from a folder in seconds
  • Refreshes with one click when source data changes
  • Records every step as a query you can edit, audit, or hand off
  • Combines append, join, and clean-up in one workflow
  • Source.Name column traces every row back to its origin file

Cons

  • Header mismatches silently split data into extra columns
  • Large folder merges can slow refresh time โ€” filter columns early
  • Power Query Editor has its own learning curve, especially M language for advanced tweaks
  • VBA macros do not work inside Power Query โ€” the two worlds rarely talk
  • Refresh must be triggered manually unless you set up scheduled refresh in Excel Online or Power Automate
  • Files locked by other users break From Folder imports until they are released

Building a Repeatable Merge Workflow

The point of learning these tools is not to do a merge once. It is to set up a workflow that runs forever with one click. The pattern looks like this โ€” every source file or tab follows a fixed naming convention, lives in a fixed location, and has identical column headers. One workbook holds the Power Query that combines them. Whenever someone needs the merged report, they open that workbook, click Refresh All, and walk away. The output is a single sheet with every row from every source, plus a Source.Name column tracing each row to its origin.

Set this up once for a recurring report โ€” weekly branch sales, monthly project hours, quarterly inventory โ€” and you reclaim hours every cycle. The first setup takes thirty to sixty minutes. Every subsequent run takes ten seconds. That return-on-investment is why Power Query has quietly become the most valuable Excel skill of the last decade.

When to Use VBA Instead of Power Query

Power Query covers almost every merge case, but VBA still wins in a few specific situations. If your IT department locks down Power Query but leaves macros enabled, VBA is your only option. If the source files have wildly different layouts that change each week, a VBA loop with custom logic per file beats fighting Power Query's static schema. And if the merge needs to do something Power Query cannot โ€” like apply a different transformation depending on the file name, or write the result back to multiple sheets โ€” VBA gives you the procedural control to handle it.

For everything else, Power Query is faster to build, easier to maintain, and survives Excel version changes better than macros.

Try a Free Excel Quiz

The Bottom Line on Merging Excel Sheets

Merging Excel sheets is one of those skills where ten minutes of learning saves hundreds of hours over a career. The trick is naming the job first โ€” append, combine from folder, or join โ€” and reaching for the matching tool. Move or Copy handles small one-off merges. Power Query Append handles same-shape tabs. Power Query Get Data From Folder handles bulk files. XLOOKUP and Power Query Merge handle joins. VBA covers the last 5 percent of edge cases.

Pick one method this week and apply it to a real report you actually produce. Set up the query, save the workbook, and the next time the request comes in you will be done before you finish your coffee. Practice on tasks you genuinely need to solve โ€” that builds the speed and the muscle memory that separate casual users from the colleagues everyone calls when a merge job lands at 4 pm on a Friday.

If you are preparing for a Microsoft Office certification or a job that lists Excel as a core requirement, work through practice questions that mirror real on-screen merge scenarios. Reading about Power Query is useful, but timing yourself on an actual Append or From Folder job is what builds the speed employers notice in the first week of a new role.

Excel Questions and Answers

How do you merge Excel sheets into one master tab quickly?

Turn each source tab into an Excel Table with Ctrl+T, load each as a connection-only query into Power Query, then click Data > Get Data > Combine Queries > Append Queries as New. Pick all your tables, click OK, and Close & Load. The merged data lands on a fresh sheet and refreshes whenever any source table changes.

How do I merge Excel documents from a folder without opening each one?

On the Data tab, click Get Data > From File > From Folder and browse to the folder. Power Query lists every file inside. Click Combine & Transform Data, pick the sheet name to extract from each file, and click OK. Excel stacks all rows from every file into one query you can load to a sheet.

What is the difference between Power Query Combine and Append?

They produce the same result โ€” stacked rows. Combine is the menu label Excel uses when you start from a folder and let Power Query discover files for you. Append is the specific transform that stacks two or more existing queries. Combine internally writes an Append step for you.

How do I merge multiple Excel sheets into one sheet keeping formulas?

Power Query Append converts formula results to values during the merge โ€” formulas do not survive. If you must keep formulas, use Move or Copy to bring each tab into one workbook, then either reference cells across tabs or copy rows into a single tab manually. For most reporting use cases, working with calculated values is what you want anyway.

Can I merge Excel sheets with different column orders?

Yes. Power Query Append matches columns by header name, not position. As long as the headers spell exactly the same across files, Excel lines them up automatically regardless of column order in each source. Mismatched header spelling will create extra columns, so standardize names first.

How to merge the Excel sheets when files keep being added each week?

Use Get Data > From File > From Folder once to set up the merge. Save the workbook. When new files arrive in the folder, click Data > Refresh All and the new rows join the merge automatically. No need to re-do the setup. This is the single biggest time-saver in modern Excel.

Why does my merged sheet have duplicate headers between blocks?

If you merged with VBA or manual copy-paste, the header row from each source file was copied along with the data. Either delete the duplicate header rows by hand, or in VBA add Offset(1) to skip the first row of each source. Power Query Append handles this automatically because each source is loaded as a Table with one header.

Should I use VBA or Power Query to merge Excel sheets?

Power Query for almost every case โ€” easier to build, easier to maintain, refreshes with one click. Use VBA only when IT has disabled Power Query, when source layouts vary wildly per file, or when you need procedural logic Power Query cannot express. For straightforward stacking jobs, Power Query wins every time.
โ–ถ Start Quiz