So I'm wondering how to find the min/max of a named range based on the value in another column.
Col A Col B Col C
S_1 x x max =
S_2 y x min =
S_3 y y max =
S_4 x y min =
S_5 x
So basically, I want to find the max/min of the named ranges S_1 through S_5 that correspond to an x in Col B separate from the max/min values that correspond to a y in Col B. The named ranges dynamically refer to data in a separate sheet (sheet2), and are equal to the formula =OFFSET(Sheet2!$A$10, Sheet1!$E$6, Sheet1!$F$25, Sheet1!$E$9,1), so each named range can refer to a different range of data based on other cells in Sheet1.
I've tried using the indirect function, but it returns a REF because I believe it doesn't work since the named range is an offset? I'd rather not have to use a macro if I can. Any ideas on how to go about this?