Hi,
I'm currently using the INDIRECT function to vary the size of a range specified within an OFFSET function.
See attached example.
In this example, I use the following formula to break up the list of data into discrete groups and then find the maximum value with that group. The reason for using the indirect function is that the size of the groups vary depending upon the case I'm looking at. So I may want 3 items in the group, or 4 or 5. If you vary the Yellow cell you'll see how the data changes. (For the purpose of this file I simply use a RAND() generator to generate a random set of data.).
=MAX(OFFSET(INDIRECT("b1:b"&E$2),E$2*(D7-1),0))
I'd like to replace this formula with one that doesn't use the INDIRECT function as it is impacting the performance of the spreadsheet and I'm getting error messages due to volatility.
Any help is appreciated! Thanks,
AB
Indirect and Offset.xlsx
Bookmarks