[英]How to use INDIRECT with INDEX-MATCH in EXCEL
The formula 公式
=INDEX(tblWeek1[Area],MATCH($P6,tblWeek1[Leader],0))
is working correctly where $P6
is a leader name and an Area for that leader is returned. 正确运行
$P6
是领导者名称,并返回该领导者的区域。
However, I want to replace the table names with the value from a cell that will contain a chosen table name (I have multiple table for different weeks). 但是,我想用包含所选表名的单元格中的值替换表名(我有不同周的多个表)。 But,
但,
=INDEX(INDIRECT("A1"&"[Area]"),MATCH($P6,(INDIRECT("A1")&"[Leader]"),0))
Does not work where A1 contains "tblWeek1"
, even though =INDIRECT("A1")&"[Area]"
by itself correctly returns: "tblWeek1[Area]"
在A1包含
"tblWeek1"
地方"tblWeek1"
,即使=INDIRECT("A1")&"[Area]"
本身正确返回: "tblWeek1[Area]"
Thoughts? 思考?
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.