Sometimes when you have to deal with a lot of information, you may get a request to combine and merge data from multiple worksheets into one worksheet. That’s not a difficult task, but it can be time-consuming, especially if you’ve never done it before.
The best way to proceed is by using Power Query. If you’re wondering what Power Query is and where can you get it, don’t worry. Power Query is an inbuilt feature in Excel 2016 and later versions. In case you have an older version, you can download it as an add-in feature.
Before You Begin
If you’re using an older version of Excel, all you have to do is go to the Microsoft website. Search for Power Query in the search bar at the top right corner and then download it. Make sure that you download the version correspondent to your own version of Excel. When the download is completed, you’ll see Power Query in the upper toolbar.
In order to combine data using Power Query, your data has to be organized in Excel Tables. No matter how many worksheets you have, you should organize the data in each of them in aforementioned Excel Table. The structure of the tables should be consistent.
If you’re new to this, we suggest you give names to your Excel Tables. This isn’t obligatory but it will help you avoid confusion. Let’s say that you have to prepare a report for the first four months of the year. You could name your tables: January, February, March, and April.
How to Combine Data from Multiple Spreadsheets
When you’ve prepared your Excel Tables, you’re ready to begin. Just follow the step by step guide below to successfully combine data from various worksheets:
- Click on the Data tab.
- On the left side, you should now see various options for getting your data. Click on the From other sources button. You will then be able to import data from various other sources.
- When you’ve entered the From other sources section, click on Blank Query.
- That will take you to the Power Query editor.
- There, you need to type this formula in the formula bar: =Excel.CurrentWorkbook()
- Now click on Enter and you’ll be able to see the names of all tables in the workbook.
- There will be two columns, one named Content and the other named Name (with names of your tables). In the Content header cell, you’ll see a double-pointed arrow. Click on it.
- Now select all the columns that you would like to combine. If you want to combine all columns, click on Select All Columns.
- Make sure that the option “Use original column name as prefix” isn’t checked and click OK.
All of the data from different worksheets should now be combined into one table. In the last column, you’ll be able to see the names that you’ve given to your Excel Tables. That enables you to know from which Excel Table a certain piece of data has come. It’s a very useful feature, especially if you have to deal with a lot of data.
How to Merge Data from Multiple Spreadsheets
Merging data from multiple spreadsheets isn’t difficult, but before starting make sure that:
- All worksheets have the same layout (identical headers and identical types of data).
- There are no blank rows or columns.
You have to do this if you want the process to be successful. After that, simply follow our step by step guide:
- Create a new worksheet.
- Click on the Data tab and then click on Consolidate.
- In the Function section, choose Sum.
- In the Reference section choose your spreadsheet in order to be able to access your data.
- When you find the data you need, click on Add.
- Continue in the same way for each dataset that you would like to merge.
- Click on OK.
Bonus Tip: If you’re going to change data in your worksheets in the future and would like those changes to be reflected in your new, merged worksheet as well, there’s a simple way to do it. Before you click OK, make sure that you check the box “Create links to source data” and the new worksheet will be automatically updated every time you change something.
There are many amazing things you can do with your data in Excel. It just takes some time to get used to it and discover all of the features. The first time might be a bit confusing, but every subsequent time it will be easier and faster.
We hope that this article was useful. Do you know any other tips and tricks when it comes to combining and merging data in Excel? Let us know in the comments section below.