enter image description here See image of my simple table in excel for reference
I've tried many different approaches to this using SUMPRODUCT, MATCH, INDEX, CHOOSEROW, etc in various combos and can't get it.
This is the last solid output I was able to generate: lookup division and pull the array of value from row 5 (B5:F5
=CHOOSEROWS(B2:F8,XMATCH($H$3,$A$2:$A$8,0)) this produces the array of values of B5:F5
but from there I can't get get any solid output.
Any and all help would be appreciated.
Could you see whether this would work, enter in H5
for classification:
Without LET
:
=XLOOKUP(H4, XLOOKUP(H3, A1:A8, B1:F8), B1:F1, F1, 1)
Preferred:
=LET(
data, A1:F8, div, H3, time_ran, H4,
div_row, XLOOKUP(div, INDEX(data, , 1), DROP(data, , 1)),
XLOOKUP(time_ran, div_row, DROP(TAKE(data, 1), , 1), TAKE(data, 1, -1), 1)
)