位置:首頁(yè) > 軟件操作教程 > 辦公軟件 > Excel > 問(wèn)題詳情

如何使用Excel公式標(biāo)注出表格中人員年齡段區(qū)間?

提問(wèn)人:周麗平發(fā)布時(shí)間:2021-07-20

第一種:年齡段區(qū)間對(duì)應(yīng)表+VLOOKUP近似查找

image.png

=VLOOKUP(C2,$H$4:$I$10,2,1)

第二種:LOOKUP函數(shù)直接查找,無(wú)需對(duì)應(yīng)列表

=LOOKUP(C2-1%%,{0,25,30,35,40,45,50},{"25以下","26-30","31-35","36-40","41-45","46-50","50以上"})

或者

=LOOKUP(C2,{0;26;31;36;41;46;51},{"25以下","26-30","31-35","36-40","41-45","46-50","50以上"})

請(qǐng)區(qū)分以上兩個(gè)lookup寫法的些微差異,為什么?

第三種:CHOOSE函數(shù)配合match函數(shù)的近似查找,也可以不用對(duì)應(yīng)列表

=CHOOSE(MATCH(C2,{0;26;31;36;41;46;51}),"25歲以下","26-30","31-35","36-40","41-45","46-50","50歲以上")

繼續(xù)查找其他問(wèn)題的答案?

回復(fù)(0)
返回頂部