Someone has to suggest brute force with array formulas.
M2:
Formula:
=MIN(IF(MMULT(F2:K2,{1,0,0;1,0,0;0,1,0;0,1,0;0,0,1;0,0,1}),MMULT(F2:K2,{1,0,0;1,0,0;0,1,0;0,1,0;0,0,1;0,0,1})))
Fill M2 down as far as needed. Enter array formulas by holding down [Ctrl] and [Shift] keys before pressing [Enter].
The array in the formula above could be generated by
Formula:
=--(TRANSPOSE(INT((COLUMN(F2:K2)-MIN(COLUMN(F2:K2)))/2))={0,1,2})
so that if you wanted sums of 3 columns it'd change to
Formula:
=--(TRANSPOSE(INT((COLUMN(F2:K2)-MIN(COLUMN(F2:K2)))/3))={0,1})
or if you wanted the sums of 5 columns from F2:Y2, it'd change to
Formula:
=--(TRANSPOSE(INT((COLUMN(F2:Y2)-MIN(COLUMN(F2:Y2)))/5))={0,1,2,3})
The number of adjacent columns to sum (n) become the divisor inside the INT call, and the ending array are sequential integers from 0 to the total number of columns divided by n less 1.
Bookmarks