Append data based on Date using links

bunny1122

New Member
Joined
Jul 8, 2022
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hi All

I have a report that need to append data from other files based on report date.

The source files are daily files with the file name "Daily Report_yyyymmdd", the data is to be updated via links to the source files. I'm currently updating it by copying the link and pasting to row below and change the date manually. Is there a formula/vba to lookup the date in Column A and to just use this formula for the whole Column B without manually changing the date in the link ? Appreciate any inputs, thanks!

Sample data.
Book2.xlsx
AB
1DateMTM Reserve
201/06/22-189.9390526
302/06/22-194.911566
403/06/22-186.8192117
504/06/22
605/06/22
706/06/22
807/06/22
908/06/22
1009/06/22
1110/06/22
1211/06/22
1312/06/22
1413/06/22
1514/06/22
1615/06/22
1716/06/22
1817/06/22
1918/06/22
2019/06/22
2120/06/22
2221/06/22
2322/06/22
2423/06/22
2524/06/22
2625/06/22
2726/06/22
2827/06/22
2928/06/22
3029/06/22
3130/06/22
Sheet1
Cell Formulas
RangeFormula
B2B2='C:\Users\10040185B\Documents\[Market Risk Summary Daily Report_20220601.xlsm]Overall Summary'!$D$48
B3B3='C:\Users\10040185B\Documents\[Market Risk Summary Daily Report_20220602.xlsm]Overall Summary'!$D$48
B4B4='C:\Users\10040185B\Documents\[Market Risk Summary Daily Report_20220603.xlsm]Overall Summary'!$D$48
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
how about something like
=INDIRECT("C:\Users\10040185B\Documents\[Market Risk Summary Daily Report_"&TEXT(A2,"YYYYMMDD")&".xlsm]Overall Summary'!$D$48")
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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