Excel 寫Vlookup的問題

2010-03-09 7:06 pm
A8 的值是驗證的有四種選項 分別為week1,week2,week3,week4
A9 的值是驗證的有四種選項 分別為1,2,3,4

某欄位本來是
=IF(VLOOKUP(D7,'’week1!$C$7:$M$111,6,FALSE)=0,"",VLOOKUP(D7,’week1'!$C$7:$M$111,6,FALSE))

Vlookup(值,某個sheet的陣列, 抓取值, false)
我想讓Sheet 跟抓取值 可以靠我從A8. A9的驗證欄位去控制, 大概像下面這樣子
=IF(VLOOKUP(D7,'A8'!$C$7:$M$111,A9+5,FALSE)=0,"",VLOOKUP(D7,'A8'!$C$7:$M$111,A9+5,FALSE))

請問要怎麼寫呢???? 有辦法嗎?

回答 (2)

2010-03-09 8:28 pm
✔ 最佳答案
請試試

=IF(VLOOKUP(D7,INDIRECT(A8&"!$C$7:$M$111"),A9+5,),"",VLOOKUP(D7,INDIRECT(A8&"!$C$7:$M$111"),A9+5,))
2010-03-10 4:16 pm
=IF(ISNA(VLOOKUP(D7,INDIRECT(A8&"!$C$7:$M$111"),A9+5,)),"",VLOOKUP(D7,INDIRECT(A8&"!$C$7:$M$111"),A9+5,))


收錄日期: 2021-04-27 15:53:16
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20100309000010KK02337

檢視 Wayback Machine 備份