Vlookup across several external files

cgrady

New Member
Joined
May 15, 2008
Messages
10
Hi there,

Here is my problem: I have a master spreadsheet that contains a list of 250 student names.

That file has been split into eight smaller spreadsheets so that teachers can enter details about the students.

I would like to use a vlookup formula to update the entries on the master spreadsheet as the smaller ones are filled in.

If I tell the vlookup formula which spreadsheet to look at I can make it work. But is there a single formula I can use that will search through one file, then, if it doesn't find the name, search through the next file and so on.

In other words I need a vlookup formula that can search through eight different external spreadsheets looking for a single entry.

Here is an example of the Vlookup formula that works with just one spreadsheet:
=VLOOKUP(D:D,'[Y7 Annual Report_English_7A1.xls]Subject Report'!$C:$N,8,FALSE)

I would like it to go on to search through "Y7 Annual Report_English_7A1.xls" and so on.

Any help is very appreciated. I've been looking through google and the forums but can't seem to make anything work.
 
Hi
List your file names in col A. and corresponding sheet names in col B
col C = "=Indirect(D:D,'[" & A1 & "]" & B1 & "'!$C:$N,8,FALSE)"
Copy the formula down. A macro would be faster.
Ravi
 
Upvote 0
Hi Ravi,

I tried typing that in, using both the file names and the file names complete with location but got the following error:

screenshot.jpg
 
Upvote 0
I was hoping that something like the following might work but it only returns an #N/A, when I know the file I am trying to reference contains the information I want to pull out.

=IF(ISNA(VLOOKUP(D:D,'E:\School Spreadsheets\Annual Report\Annual Reports To Check\English\[Y7 Annual Report_English_7A1.xls]Subject Report'!$C:$N,8,FALSE)),"",VLOOKUP(D:D,'E:\School Spreadsheets\Annual Report\Annual Reports To Check\English\[Y7 Annual Report_English_7B.xls]Subject Report'!$C:$N,8,FALSE))
 
Upvote 0

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