Maybe my logic is wrong, but I get some different numbers than you with my formula, which is:
=SUM(SMALL(IF($F$3:$W$3="Tech",F4:W4),{1,2,3}))+IF(SMALL(IF($F$3:$W$3="Speed",F4:W4),1)<SMALL(IF($F$3:$W$3="Tech",F4:W4),4),SMALL(IF($F$3:$W$3="Speed",F4:W4),1),SMALL(IF($F$3:$W$3="Tech",F4:W4),4))+IF(SMALL(IF($F$3:$W$3="Speed",F4:W4),2)<SMALL(IF($F$3:$W$3="Tech",F4:W4),5),SMALL(IF($F$3:$W$3="Speed",F4:W4),2),SMALL(IF($F$3:$W$3="Tech",F4:W4),5))
confirmed with CTRL+SHIFT+ENTER not just ENTER. You will see { } brackets appear around the formula. Then copied down.
My logic is:
Sum the minimum 3 values corresponding to "Tech", then check the minimum value of "Speed" items... if that is less than the 4th smallest "Tech" value, then add the min "Speed" value otherwise add the 4th smallest "Tech" value, then check the 2nd smallest "Speed" value and compare to the 5th smallest "Tech" value and add the smaller of the 2 to the other 4 values retrieved.
If that is still wrong... then you will need to clarify...why not.
Bookmarks