简体   繁体   English

Excel从单元格定义的函数中引用另一个工作表

[英]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.

相关问题 如何从Module-Excel VBA中的另一个工作表引用单元格? - How to reference cell from another sheet in Module - Excel VBA? Excel:如何让IF函数从另一个工作表返回单元格的值 - Excel: How to have an IF function return the value of the cell from another sheet 使用Excel INDIRECT或其他函数引用具有日期格式(dd mmm yyyy)的工作表名称的单元格以显示所选的工作表单元格数据 - Using Excel INDIRECT or another function to reference cell with sheet name that is in a dated format (dd mmm yyyy) to display chosen sheet cell data 如何引用另一个工作表中的单元格? - How to reference a cell from another sheet? 使用另一个工作表中的单元格作为参考 - using a cell from another sheet as reference 使用来自另一个工作表的连接引用更新单元格 - updating a cell with a concatenated reference from another sheet Excel从另一个工作表更改单元格链接 - Excel changing Cell link from another sheet 连接另一个工作表中的Excel单元格值 - Concatenate Excel cell value from another sheet Excel-从另一个工作表添加单元格值 - Excel - Add cell value from another sheet 卡在Excel公式中以调用另一张工作表中的数据而不更改单元格引用 - Stuck in excel formula calling data from another sheet without changing cell reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM