搜索并提取 Excel 电子表格
我有一张信息表。在第一列中,我有名字 1-10。我还有 10 个名为作业 1-10 的列。我根据此人的姓名获得了介于两者之间的数据。例如,如果您查看名称 3,他们在同一行中有 10 个作业。我的问题是,我创建了一个下拉列表,其中包含该表下方的 10 个姓名。我想要做的是,当我单击下拉列表中的名称时,该名称的行会自动填充到 10 列中的行中。我尝试过 VLOOKUP 但在使用不同的语法选项时遇到问题。有人有主意吗?
I have a table of information. In the first column I have names 1-10. I also have 10 columns named jobs 1-10. I have the data all in between based on the name of the person. For example, if you look at name 3 they have 10 jobs in the same row. My question is, I have created a drop down list with the 10 names below that table. What I want to do is when I click the name from the dropdown list, the row for that name automatically gets populated across the row in the 10 columns. I have tried VLOOKUP but having trouble with the different syntax options. Anybody have an idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我正确理解您的问题,以下内容可能会有所帮助。
假设您的数据设置如下:
现在,在单元格
A5
中,我有一个姓名下拉列表,即 Bob 和 Sue。当我在 A5 中选择一个姓名时,我希望他们的所有工作都在同一行,即单元格 B5、C5 和 D5。这有帮助吗?我很感激你有 10 份工作,但你可以轻松复制。
If I understand your issue correctly, the following may help.
Let's suppose your data is set-up like this:
Now in cell
A5
I have a drop down list of names i.e. Bob and Sue. When I select a name in A5 I want all their jobs in the same row i.e. cells B5, C5 and D5.Does that help? I appreciate you have 10 jobs but you can easily replicate.
您需要将值返回到多个字段中。
VLOOKUP 返回一个标量。你需要写一个宏。
您可以录制并更改您录制的内容。
You need to return values into several fields.
VLOOKUP returns a scalar. You need to write a macro.
You can record and then change the things you recorded.