[英]Excel Reference another sheet from within a function defined by a cell
Ok hopefully i can explain what i am needing to happen. 好的,希望我能解释我需要发生的事情。 So i have an Excel Document that keeps track of our staff members individual KPI's that is stored in their own sheet. 因此,我有一个Excel文档,该文档可以跟踪我们的员工存储在其工作表中的各个KPI。 What i am wanting to do is create a sheet that acts as the template for the monthly overview. 我想做的是创建一个工作表,作为每月概览的模板。 So that when i enter the month into cell B3 and the staff members name into cell E3 it will goto the staff members sheet and get the required information from there. 这样,当我在单元格B3中输入月份,并在单元格E3中输入工作人员姓名时,它将进入工作人员表并从那里获取所需的信息。
Here is the formula i have so far that works well: 这是我到目前为止运行良好的公式:
=INDEX('Jack'!F5:M84,MATCH(B3,'Jack'!A5:A84,0),MATCH(A6,'Jack'!F3:M3,0))
In the code above 'Jack' is the name of the staff members sheet - B3 is the month to search for - and A6 refers to the KPI i am looking for. 在上面的代码中,“ Jack”是工作人员表的名称-B3是要搜索的月份-A6是我要查找的KPI。 I need to replace 'Jack' with the text that is entered into E3 so that i don't need to change the code for every staff member. 我需要用输入到E3中的文本替换“杰克”,这样我就不必更改每个工作人员的代码。
Any help is greatly appreciated. 任何帮助是极大的赞赏。
Try this formula. 试试这个公式。 May be it will work for you. 也许它将为您工作。
=INDEX(INDIRECT(E3&"!F5:M84"),MATCH(B3,INDIRECT(E3&"!A5:A84"),0),MATCH(A6,INDIRECT(E3&"!F3:M3"),0))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.