Sum Across Dynamic File Names

grahamgrieve

New Member
Joined
May 15, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi There,

Bursting my head with this one.

Okay so, The A column contains the name of each workbook minus ".xls". The D column is trying to create a total value for a specific column in each of the work books.

I want the formlua to look like this - =sum($file path$, $dynamic file name based on the text in A column of current sheet$, ".xls", $sum of column D in the referenced sheet)

So far I've got =SUM('G:\folder\[(=concatenate(=indirect("a2"))).xlsx]Queries'!$B:$B)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Marc L

Well-known Member
Joined
Apr 5, 2021
Messages
1,563
Office Version
  1. 2010
Platform
  1. Windows
Hi,​
if you do it not 'dynamic' :rolleyes: what is the cell formula ?​
As it is the good way to start to learn how Excel works before to amend the formula to rule with a dynamic cell …​
 

grahamgrieve

New Member
Joined
May 15, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,​
if you do it not 'dynamic' :rolleyes: what is the cell formula ?​
As it is the good way to start to learn how Excel works before to amend the formula to rule with a dynamic cell …​
The cell formula would be as above but instead of (=concatenate(=indirect("a2"))) it would just have the value in cell A2, e.g. "home" as the file is called "home.xls".
 

Forum statistics

Threads
1,143,841
Messages
5,721,110
Members
422,340
Latest member
canadianbacon357

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