您可以从 Excel 中参考文献的相邻列中提取内容吗?
我有两张纸。其中一个列出了我的所有项目,其中包含客户、项目编号、项目名称等列。还有一个我用来跟踪项目人员的预计工作时间的项目。
我希望能够在工时表的第一列中选择项目名称,并使用项目表中的相关数据填充接下来的几列,这样我只需在一个位置维护每个项目的详细信息。
现在,我在工时表上有项目名称列,从项目表中创建项目名称列表,但似乎找不到工作表函数/公式来让它根据一个选择提取其他数据。
任何关于如何做到这一点的见解都会非常有帮助。
I have two sheets. One that lists all of my projects with columns for client, project number, project name, and etc. And one that I use to track estimated hours for the people on the project.
I want to be able select the project name in the first column on the hours sheet and have it populate the next couple of columns with the related data from the project sheet so I only have to maintain each project's details in one spot.
Right now I have the project name column on the hour sheet creating a list of the project names from the projects sheet but can't seem to find the worksheet function/formula to have it pull the other data in based on the one selection.
Any insight on how to do this would be very helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否为所有项目准备了一张工时表,还是为每个项目准备了一张工时表?
假设您的 Excel 中有以下工作表结构:
项目 |我的项目1 小时 |我的项目2 小时 | MyProject3 小时
如果我理解您的问题,您的目标是在项目(主)工作表中有一个下拉组合框,根据所选项目从工时表中获取数据,对吗?
因此,我们在项目中会有一个组合框,其值为 MyProject1 / MyProject2 / MyProject3。
使用 vlookup Excel 公式非常简单。不过,您需要确保所有项目表具有相同的结构。
不过,如果您只有一张包含时间的工作表 + 一个标识项目的列,则使用 vlookup 仍然可行,但会有点困难。
这些是您可能需要使用的 Excel 公式:
一旦我更好地理解了您的问题,我也许可以提供更多帮助。
Rgds
编辑#1:
这是预期的工作流程吗?
抱歉,这对我来说听起来很混乱。也许如果您为我们提供两张表的列标题或预期的数据流(应该手动/自动完成)。
否则,您将需要等待另一个比我更理解您的请求的人。 :)
Do you have one Hours Sheet for all projects or a Hours Sheet for each project?
Let's assume you have the following sheet's structure in your Excel:
Projects | MyProject1 hours | MyProject2 hours | MyProject3 hours
If I understood your question, your goal is to have a dropdown combobox in your Projects (main) sheet that takes data from the hours sheets according to the project selected, right?
Therefore, we'd have a combobox in Projects with the values MyProject1 / MyProject2 / MyProject3.
It's fairly simple using vlookup Excel formula. You'll need to ensure all project sheets have the same structure, though.
Still, if you have only one sheet with hours + a column identifying the project, is still feasible with vlookup, but will be a little bit harder.
These are the Excel formulas you may need to use:
Once I understand better your question, I might be able to help a little bit more.
Rgds
Edit #1:
Is this the expected workflow?
It sounds confusing to me, I'm sorry. Maybe if you give us column headers for both sheets, or the expected data flow (what is supposed to be done manually / automatically).
Otherwise, you'll need to wait for another guy that understands your request better than I did. :)