Hi,
almost two years later… I guess you already have found the solution, but maybe others, searching for the same issue, didn’t (like me, just yesterday).
Robleyd was right: looking at the INDEX()
function was the correct way. But, nevertheless, it was hard for me to find out what exactly had to be done, since online documentation is not always very exhaustive. I understood that the INDEX()
function is right when I realised that it does indeed not return values but references. That’s the trick!
So, say you want to calculate the maximum value of your subrange by using function MAX()
, you have to define the relative cell indexes of the upper left and of the lower right corners inside your sub range which you called “MainRange”:
upper left corner: row 1; column 2
lower right corner: row 4; column 3
Then, using
INDEX(MainRange, 1, 2)
and INDEX(MainRange, 3, 4)
will return the values of the two cells OR the references to the two cells. So, the sub range is defined by simply combining the two corners with a colon, such as:
=MAX(INDEX(MainRange, 1, 2):INDEX(MainRange, 3, 4))
I tested it and it works. I also tried other solutions with tildes (~
) inside one single INDEX()
function, but with no result other than errors or inconsistent values.
I hope this explanation will be useful for somebody…
Best wishes.