Forum

Notifications
Clear all

Getting specific cell reference from multiple sheets from a different Excel Workbook (file)

4 Posts
2 Users
0 Reactions
61 Views
(@nazrinz)
Posts: 6
Active Member
Topic starter
 

In another topic, I had asked how to get specific cell reference from multiple sheets in same workbook and it is working for me now. Now I would like to ask a similar question but instead of within the same workbook, how do I get specific cell reference from multiple sheets from a different Workbook (file).

eg.

  • I have WorkBook1 (WB1) and WorkBook2 (WB2) with multiple sheets with same data structure in each sheet.
  • WB1 is the master file
  • I need to get specific Cell reference from the sheets in WB2 into WB1.

Can we still use MATCH & INDIRECT and INDEX? If so, how? I can't seem to get it.Frown

Thank you and hope you are able to assist.

 
Posted : 03/07/2021 1:00 pm
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

The best and probably easiest solution is to use Power Query by loading the data from files in a folder.
https://www.myonlinetraininghub.com/power-query-get-files-from-a-folder

Br,
Anders

 
Posted : 03/07/2021 6:53 pm
(@nazrinz)
Posts: 6
Active Member
Topic starter
 

Hi,

This doesn't help as each file to extract data from may have >100 Worksheets.

I need to setup 1 master file and would like to extract data from multiple files with multiple worksheets.

Example:

Master file to obtain cell Reference from:

  • FileABC2000.xlsx
    • Sheet1 = CellA1
    • Sheet2 = CellA1
    • Sheet3 = CellA1
    • Sheet... = CellA1
  • FileABC2001.xlsx
    • Sheet1 = CellA1
    • Sheet2 = CellA1
    • Sheet3 = CellA1
    • Sheet... = CellA1
  • FileABC20xx.xlsx
    • Sheet1 = CellA1
    • Sheet2 = CellA1
    • Sheet3 = CellA1
    • Sheet... = CellA1

I hope the above is in order and hope that someone is able to assist.

 

Thanks

 
Posted : 07/07/2021 11:13 pm
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

There are of course different techniques to handle data import to Power Query, which I still regard as the best solution for you.
Import Multiple Files Containing Multiple Sheets with Power Query • My Online Training Hub

Br,
Anders

 
Posted : 08/07/2021 1:46 am
Share: