Thnaks, for the suggestion, but I'd like to understand if i can create a
dynamic formula where the last sheet to be considered is calculated
programmatically. I explored INDIRECT() but apparently it doesn't work with
aggregate functions.
Any workaround?
You cannot use a dynamic formula when it comes to sheets and future sheets.
Best way is to use dummy sheets and always add future sheets in-between the
dummy sheets described in the answer you received