Excel: What determines evaluation order in a formula?

前端 未结 4 1588
Happy的楠姐
Happy的楠姐 2020-12-17 22:53

I have a worksheet with the following contents in A1:G1

7  8  4  2  9  11  10

Formula

=SUMPRODUCT(MIN($B1:$G1-$A1)) (1)
         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 23:51

    As per my comment, to get the smallest difference between A1 and B1:G1 without using an "array entered" formula you can use INDEX to do what you were trying to do with SUMPRODUCT, i.e.

    =MIN(INDEX(ABS($B1:$G1-$A1),0))

提交回复
热议问题