Cell Date Reference in formula for data from other files

NGB82KS

Board Regular
Joined
Nov 7, 2019
Messages
50
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
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,269
Office Version
  1. 365
Platform
  1. Windows
To do that you would need to use the INDIRECT function, but it doesn't work on closed workbooks.
 

NGB82KS

Board Regular
Joined
Nov 7, 2019
Messages
50
Office Version
  1. 2016
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!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,269
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
If you get stuck, just start a new thread.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,253
Messages
5,600,544
Members
414,387
Latest member
Vincent88

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
Top