Cell Date Reference in formula for data from other files

NGB82KS

Board Regular
Joined
Nov 7, 2019
Messages
82
Office Version
  1. 2016
Hi all, not sure this is even possible reading through the forums, but I'll give it a go and ask the question, or have to look at some sort of vb script.

I have a root folder called "Teachers" and under that folder, hundreds of subfolders for all the schools ( e.g. Teachers\School 1\; Teachers\School 2\; Teachers\School 3\; etc..) and within each of those folders are excel files with a name that has a date, "Report 2020 10 01.xlsx";"Report 2020 11 01.xlsx";"Report 2020 11 30.xlsx".

I'm currently using the formula on my consolidated spreadsheet that is '\\Teacher\School 1\[Report 2020 11 01.xlsx]Summary'!$D$85 to pull the specific number from that cell in that file into my consolidated spreadsheet, repeating hundreds of times for each school.

Is there a way to use a cell reference in my formula so I change the date on my consolidated form and it uses that to pull the information?
CONSOLIDATED SPREADSHEET
AB
1Date to use in the formula2020 11 30
2Formula'\\Teacher\School 1\[Report B1 Date.xlsx]Summary'!$D$85
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
To do that you would need to use the INDIRECT function, but it doesn't work on closed workbooks.
 
Upvote 0
To do that you would need to use the INDIRECT function, but it doesn't work on closed workbooks.
:( ok, looks like i'll have to figure it out in vb then and write it in as a macro? Thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
If you get stuck, just start a new thread.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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