How to Extract Data from Multiple Excel Workbooks

In today's data-driven world, Excel has become an indispensable tool for managing and analyzing information. Often, this data is scattered across multiple workbooks, making it challenging to consolidate and draw meaningful insights. This article will guide you through the process of pulling data from multiple workbooks in Excel, streamlining your workflow and enhancing your analytical capabilities.

two rows of numbers are shown in the same row, and each column has different prices
two rows of numbers are shown in the same row, and each column has different prices

Before we dive into the step-by-step process, let's ensure you have the right version of Excel. This method works best with Excel 2010 and later versions, including Excel 365. Now, let's get started!

Combine Multiple Excel Files into One
Combine Multiple Excel Files into One

Using Excel's Data Model

The Excel Data Model, introduced in Excel 2013, provides a powerful way to combine data from multiple sources. It allows you to create relationships between tables, much like a relational database, making it easier to pull data together.

Consolidate Multiple Excel Workbooks Using Power Query
Consolidate Multiple Excel Workbooks Using Power Query

To use the Data Model, follow these steps:

Create a Data Model

How to Combine Data From Pages in Excel
How to Combine Data From Pages in Excel

First, let's create a new Excel workbook and set up the Data Model.

1. Click on the 'Data' tab in the ribbon. 2. In the 'Get & Transform Data' group, click on 'New Source'. 3. Select 'From Other Sources' and click 'Next'. 4. Choose 'From Database' and click 'Next'. 5. Select 'Microsoft Excel' and click 'Next'. 6. Browse and select the first workbook you want to import, then click 'Open'. 7. In the 'Create Table' dialog box, ensure the table range is correct and click 'OK'. 8. Repeat steps 6-7 for each workbook you want to include in the Data Model.

Create Relationships

How to Link Excel Data Across Multiple Sheets (7 Easy Ways)
How to Link Excel Data Across Multiple Sheets (7 Easy Ways)

Now that your data is in the Data Model, let's create relationships between the tables.

1. Click on the 'Data' tab in the ribbon. 2. In the 'Show' group, click on 'Manage Data Model'. 3. In the 'Data Model' dialog box, you'll see a list of tables. Click on the first table to select it. 4. Drag and drop the table onto another table to create a relationship. Excel will automatically suggest a common column to create the relationship on. 5. Click 'Create' to confirm the relationship. 6. Repeat steps 4-5 to create additional relationships as needed.

Using Power Query

How to combine multiple workbooks into one master workbook in Excel?
How to combine multiple workbooks into one master workbook in Excel?

Power Query is another powerful tool in Excel that allows you to extract, transform, and load (ETL) data from multiple sources. It's particularly useful when you need to clean and shape your data before combining it.

To use Power Query, follow these steps:

How To Combine Multiple Workbook to One Workbook In Excel
How To Combine Multiple Workbook to One Workbook In Excel
Excel Macro: Extract Data from Multiple Excel Files (4 Methods)
Excel Macro: Extract Data from Multiple Excel Files (4 Methods)
How to Combine Multiple Data Sets in Microsoft Excel Using Power Query
How to Combine Multiple Data Sets in Microsoft Excel Using Power Query
How to merge and combine Excel spreadsheets into one
How to merge and combine Excel spreadsheets into one
Combine Data from Multiple worksheets into ONE sheets | Excel Tutorial
Combine Data from Multiple worksheets into ONE sheets | Excel Tutorial
the text combine excel files and add multiple file types into one column with arrows pointing to them
the text combine excel files and add multiple file types into one column with arrows pointing to them
Day 2 – Introduction to Excel Excel
Day 2 – Introduction to Excel Excel
How to Extract Data from PDF to Excel (4 Suitable Ways)
How to Extract Data from PDF to Excel (4 Suitable Ways)
Copy Data From One Sheet to Another in Excel
Copy Data From One Sheet to Another in Excel
An Easy Guide to Filtering Data in Excel
An Easy Guide to Filtering Data in Excel
a notebook with microsoft excel written on it
a notebook with microsoft excel written on it
Excel - Link Data Between Worksheets In A Workbook In Excel
Excel - Link Data Between Worksheets In A Workbook In Excel
FREE Tutorial - Excel Data Forms Mastery!
FREE Tutorial - Excel Data Forms Mastery!
My 9 Favorite Excel Formatting Tricks to Make My Data Pop
My 9 Favorite Excel Formatting Tricks to Make My Data Pop
How to separate information on Excel
How to separate information on Excel
Combining multiple excel files into one location📚
Combining multiple excel files into one location📚
Advanced Excel, Advance Excel, Excel Formulas
Advanced Excel, Advance Excel, Excel Formulas
How to create a list of all worksheet names from a workbook?
How to create a list of all worksheet names from a workbook?
10 Easy Ways to Clean Data in Excel Spreadsheets
10 Easy Ways to Clean Data in Excel Spreadsheets
Excel Sum Formula Examples, Excel Sum Formula Guide, Excel Spreadsheet Learning, Excel For Business Data Management, Excel Spreadsheet Formulas, Excel For Business Management, How To Assign Serial Numbers In Excel, Excel Spreadsheet Skills, Excel Sumproduct Guide
Excel Sum Formula Examples, Excel Sum Formula Guide, Excel Spreadsheet Learning, Excel For Business Data Management, Excel Spreadsheet Formulas, Excel For Business Management, How To Assign Serial Numbers In Excel, Excel Spreadsheet Skills, Excel Sumproduct Guide

Get Data from Multiple Workbooks

Let's start by importing data from multiple workbooks using Power Query.

1. Click on the 'Data' tab in the ribbon. 2. In the 'Get & Transform Data' group, click on 'Get Data'. 3. Select 'From File' and then 'From Workbook'. 4. Browse and select the first workbook you want to import, then click 'Import'. 5. In the 'Navigator' dialog box, select the sheet or table you want to import and click 'Load'. 6. Repeat steps 4-5 for each additional workbook.

Combine Data Using Power Query

Now that you have imported data from multiple workbooks, let's combine it using Power Query.

1. In the 'Home' tab of the Power Query Editor, click on 'Merge Queries'. 2. In the 'Merge' dialog box, select the table you want to merge with and the common column to match on. 3. Click 'OK' to create the merge. 4. Repeat steps 1-3 to merge additional tables as needed. 5. Once you have combined all your data, click on the 'Home' tab in the Power Query Editor and click 'Close & Load' to load the data into your workbook.

Congratulations! You've successfully pulled data from multiple workbooks in Excel using both the Data Model and Power Query. By mastering these techniques, you'll be well on your way to becoming an Excel power user, capable of handling even the most complex data sets. Happy analyzing!