I have a folder called “source” which has sub-folders (currently 36 and these could grow). Each of these sub-folders has a .ods and ALL these files start with the same 4 characters - PRPL and then other text and/or numbers.
In the “source” folder I have another file named reports.ods and in this file I want to insert formulas to get the sum of certain cells from each .ods file in the sub-folder. So if I wanted to do this manually, I would enter in the reports.ods file for eg. in cell D6:
=‘file:///path-to-file/1/source1.ods’#$Assets.D6+‘file:///path-to-file/2/source2.ods’#$Assets.D6+‘file:///path-to-file/3/source3.ods’#$Assets.D6
and so on adding each files path and the cell reference (the same cell from every file)
This will obviously take forever and as I add sub-folders and more files, i will need to update the formula time and again
Is there anyway to have a simpler formula … something more cuboid like?
I mean is it even possible or will it need some code?
My version and other info:
Version: 6.4.0.3
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3;
Locale: en-IN (en_IN); UI-Language: en-US
Calc: threaded
Thanks
Bijal