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
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