I'm having a little trouble with this array formula in Excel.
I have two ranges (columns of data) that correspond to the row and column number to an overall array that contains multipliers to be applied to a non-related function. I want to find the minimum multiplier that is found from the column/row references.
Let's assume the column number range is A1:A10 and the row number range is A15:A24 and the multiplier array is K4:M23. An inefficient way to do this is to do:
=MIN(INDEX(K4:M23,A15,A1),INDEX(K4:M23,A16,A2),etc...) ...but this will get cumbersome, especially if checking for errors, etc. Not to mention the memory usage if this function is called several thousand times (it just so happens to be).
So I thought about an array function:
{=MIN(INDEX(K4:M23,A15:A24,A1:A10))} ...but this only returns the first element in the array. If this function is entered as a multi-cell array formula, it handles it correctly, but it seems that as is, MIN is applied to each singular element and the function returns the original array size, not the single value of the minimum.
Any way around this?
=SMALL(INDIRECT(ADDRESS(A1:A10,A15:A24)),1)