Import Data from Excel to Excel
To pull data from another workbook to current active Excel, try these methods.
- Data Import option to query data from another workbook.
- Import data from another workbook using external reference.
- Using VBA Macro to Import data from another Workbook.
Except for the third option, the first two options explain about how to pull data from another Excel using build in options. The last one is about using VBA macro programming to extract data.
1. Excel Microsoft Query data from Workbook
Use the below menu option to make Excel pull data from another workbook.
- In Excel choose Data tab from Menu. (Keyboard Shortcut: ‘Alt + A + FO’)
- Click on ‘From Other Sources’
- Select ‘From Microsoft Query’
- Choose ‘Excel Files’ in the popup window
- Select the file path of Excel to be imported.
- Choose sheet or table or view to be imported.
- Configure fields & Click Finish.
- Choose destination cell to Import data.
This completes the process of importing data from another workbook to an Excel file. This method is applicable in Excel versions from 2003 or above. In this method you can also save the query and rerun it anytime to import the data later. Also, the data refresh is also possible. Just click on the table that you have imported. From Design tab, just click “Refresh” button in the External Data Table section.
This method is very useful when you need to consolidate data from different Excel spreadsheets and summarize them to prepare your dashboards.
2. Import Data from another Workbook using External Reference
If you wonder how to pull data from another Excel file, this is the simplest method available.
To understand this, just type a ‘=’ Equal to symbol in any cell. And then type the address of any cell in another workbook in this format.
=’[D:/<File Folder Path>/sample.xlsx]<SheetName>’!<Cell Address>
If we enter any cell address from the same workbook, then it is called internal reference. Since we are entering address of a cell in external workbook, it is called external reference. Using this we can also import data from another sheet using the formula ‘=Sheet1!$A$1’ or refer this page too.
In both these methods, the data can be fetched at any time, as long as the path of the external Excel file remains the same and the spreadsheet name is not modified by anyone. The query & external reference will not work, if anyone of this parameter is modified.
3. Using Excel VBA to import Data from another Workbook
If you want an Excel VBA to get data from another workbook, then refer this page.
This page has explanation on the most used data importing techniques using VBA programming. It has VBA to read Excel file whether it is closed or in open status. Learn how to use Workbook object in Excel VBA macro to read or write data to non-active workbook.
Previous Post: Convert a Formatted Cell in Excel into HTML Tag using VBA
Next Post: Excel VBA Check – IF String Contains – Only Letters
Excel Import Data from another Workbook
Top5 Trending Posts