Excel怎么快速查找需要的数据
公式修改如下:
=IF(D2="","",IF(ISERROR(INDEX(Sheet2!C:C,MATCH(D2,Sheet2!D:D,0))),INDEX(Sheet2!C:C,MATCH(D2,Sheet2!D:D,-1)+IF(ABS(INDEX(Sheet2!D:D,MATCH(D2,Sheet2!D:D,-1))-D2)>ABS(INDEX(Sheet2!D:D,MATCH(D2,Sheet2!D:D,-1)+1)-D2),1,0)),INDEX(Sheet2!C:C,MATCH(D2,Sheet2!D:D,0))))
请看附件。
数组公式如下:
{=IF(D2="",""...全部
公式修改如下:
=IF(D2="","",IF(ISERROR(INDEX(Sheet2!C:C,MATCH(D2,Sheet2!D:D,0))),INDEX(Sheet2!C:C,MATCH(D2,Sheet2!D:D,-1)+IF(ABS(INDEX(Sheet2!D:D,MATCH(D2,Sheet2!D:D,-1))-D2)>ABS(INDEX(Sheet2!D:D,MATCH(D2,Sheet2!D:D,-1)+1)-D2),1,0)),INDEX(Sheet2!C:C,MATCH(D2,Sheet2!D:D,0))))
请看附件。
数组公式如下:
{=IF(D2="","",INDEX(Sheet2!C:C,IF(ISERROR(MATCH(D2+MIN(ABS(D2-TEXT(Sheet2!$D$1:$D$35,"G/通用格式;;;!0"))),Sheet2!D:D,0)),MATCH(D2-MIN(ABS(D2-TEXT(Sheet2!$D$1:$D$35,"G/通用格式;;;!0"))),Sheet2!D:D,0),MATCH(D2+MIN(ABS(D2-TEXT(Sheet2!$D$1:$D$35,"G/通用格式;;;!0"))),Sheet2!D:D,0))))}
请看附件。
两种公式都有局限性。收起