Consolidate data from multiple closed worksheets using formulas

tektonik

New Member
Joined
Jul 11, 2018
Messages
1
Hi there,

Context:

- a client is getting one file per store each week with the week's order from the "most popular items". He could get 100-200 files.

- each store has a code and each week the filenames change. For example on week one in June we'd have 1 master file and 100 store files named like this :

cn-most-popular-1-06-2018.xls

The master is master-1-06-2018.xls

In the master there's the product ID column and 100 columns, one for each store. The goal is to compile all orders for each item in the most popular list. The master file is prefilled with all items.

The issues:

- filenames change every week so I want to construct a string with the filename, for each store, using data from column headers (store code) and calculated data like week, month and year.

- I use SUM(IF()) to calculate the totals from each file, using an array function
- I use a concatenation formula to build my filename string then INDIRECT to refer to the file
- it works but only if the referenced worksheets are opened. I can't open 100 files, even through a macro it wouldn't make much sense

Someone had created a now unsupported function, INDIRECT.EXT. It fails.

If you have suggestions please let me know as I've been struggling all day on this yesterday.

I can't use the consolidate function as it would require to reconnect all files every month. Too much manual work.

Thank you
Melkiades
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,213,489
Messages
6,113,949
Members
448,534
Latest member
benefuexx

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