[英]Need some Excel help getting data from multiple worksheets
I need some help with Excel please 我需要有关Excel的帮助
Let's say I have an Excel workbook that has a worksheet for each person in a company. 假设我有一个Excel工作簿,其中包含公司中每个人的工作表。 Each worksheet is the name of the employee and has various information about that employee.
每个工作表都是员工的姓名,并具有有关该员工的各种信息。 I have an index page that has each worksheet name in column A starting on A2.
我有一个索引页,该页在A列中的每个工作表名称均从A2开始。 I would like to know how to show the contents of cell D6 from each employees worksheet on the index page.
我想知道如何在索引页面上显示每个员工工作表中单元格D6的内容。
Thanks 谢谢
像这样?
=INDIRECT(A2&"!$D$6")
If any of your worksheets use a hyphen or other special characters in the name use this instead: =INDIRECT("'"&A2&"'!D6") 如果您的任何工作表名称中都使用连字符或其他特殊字符,请改用此代码:= INDIRECT(“'”&A2&“'!D6”)
This should keep you from getting #REF! 这应该使您避免获得#REF! errors.
错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.