thanks so much but this formula gives me wrong qty??For M3, filled down:
Excel Formula:=LET(warehouse_col, MATCH("Warehouse " & I4, $E$2:$G$2, 0),SUMIFS(INDEX($E$3:$G$14, ,warehouse_col), $C$3:$C$14,L4, $B$3:$B$14,K4))
actually, your formula is right, i just had to push up the column! thanks so much!thanks so much but this formula gives me wrong qty??