Try this formula system used 10 numbers as example :
1] K2 >> Data Validation >> Settings >>"Allow", choose : List ; "Source", enter : 254,170,150 (being the proposed given sum for selection in testing purpose)
2] A7, enter the array formula, copy across and down :
=IF(ROWS(A$1:A1)>A$6,"",INDEX($2:$2,--RIGHT(SMALL(ROUND(ABS($A$2:$J$2-$K$2/A$6),)*10^3+COLUMN($A:$J),ROWS(A$1:A1)),2)))
Confirm enter with SHIFT+CTRL+ENTER instead of just ENTER.
6] A16, enter the formula, copy across :
=SUM(A7:A15)
7] A17, enter the array formula, copy across :
=IF(ABS(A16-$K$2)=MIN(ABS($A$16:$H$16-$K$2)),"The best number set","")
Confirm enter with SHIFT+CTRL+ENTER instead of just ENTER.
8] The row 17 will appear the wording "The best number set"
Regards
Bosco