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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Book1
[/TD]
[TD]=[$A1.xlsx]Sheet1!A1
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Book2
[/TD]
[TD]=[$A2.xlsx]Sheet1!A1
[/TD]
[/TR]
</tbody>[/TABLE]


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

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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