Extracting data from an other workbook using formula and a refering cell

MarioExcelNoob

New Member
Joined
Nov 9, 2018
Messages
6
Hi all

I've been looking on this forum, but can’t seem to find exactly what i'mlooking for...

So, my question:

Say you have a number of workbooks: Book1, Book2, Bookxx and Overview
I need to extract data from Book1 and Book2 (and the others) into Overview.

Now, I know a formula for Overview: =[Book1.xlsx]Sheet1!A1 to get data from cell A1from Book1


The thing is, I want to get the name of theworkbook I need from a cell in Overview.
Example from workbook Overview:
A B
1 Book1 =[$A1.xlsx]Sheet1!A1

2 Book2 =[$A2.xlsx]Sheet1!A1


$A1 and $A2 referring to the cell A1 and A2 in the same workbook and sheet.
So I need the names of the workbooks filled in, in theformula in column B. This way, I can copy my formula down.


I’ve tried makinga string with the formula as text and then use INDIRECT, but that doesn’t do the trickand my VBA knowledge is far from on point.

Any1 that can help me with this issue?


Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
A
B
1
Book1
=[$A1.xlsx]Sheet1!A1
2
Book2
=[$A2.xlsx]Sheet1!A1

<tbody>
</tbody>


So the example should look like this...
 
Upvote 0

Forum statistics

Threads
1,221,813
Messages
6,162,117
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top