office 小技巧

1. 数据匹配 VLOOKUP

  例一:如图,将左表(sheet1)的e列关联到右表(sheet2),条件为: sheet2.字段名 = sheet1.D

  公式:=VLOOKUP(sheet2!D2:D653, sheet1!D$1:E$528, 2, 0)     #最好固定检索区间,否则可能出现部分没关联上

  例二:在例一的条件下,增加条件:sheet2.表名 = sheet1.C 

  公式:=VLOOKUP(sheet2!C2:C653&sheet2!D2:D653, IF({1,0}, sheet1!C$1:C$528&sheet1!D$1:D$528, sheet1!E$1:E$528), 2, 0)

  执行:ctrl + shift + enter

  例三:横向匹配

  公式:=VLOOKUP($H$3,$B$3:$F$12,COLUMN(B1),0)

  例四:纵向匹配

  公式:=IFERROR(VLOOKUP(ROW(A1),$A$3:$C$12,3,0),"")    #增加iferror判断

2. excel目录  -- 超链接

猜你喜欢

转载自www.cnblogs.com/iupoint/p/10943308.html