如何根据 Excel 中的行值引用表格中的单元格?
所以我有一个两列的表,第一列是尺寸,下一列是重量。我想创建一个输入,让用户输入对象大小,然后下一个单元格会输出相应的重量。无论如何,在Excel中可以做到这一点吗?
尺寸重量
1 12
2 15
3 20
例如,在上面的表格中,我希望用户只需输入“2”作为尺寸,输出单元格将输出“15”。
到目前为止,我已经尝试使用结构化表引用,但它们只引用列?我不知道如何让它将尺寸与旁边单元格中的重量相关联。
我也没有可以使用的公式来计算物体的大小并给出重量,因为这些值来自我正在查看的科学论文没有指定的数值解。
So l have a 2 column table, with the first column being size, and the next column being weight. I want to create an input where I get a user to type in the object size, and the next cell just spits out the corresponding weight. Is there anyway to do this in excel?
size weight
1 12
2 15
3 20
For example given the table above I want a user to just type in '2' for size, and an output cell will spit out '15'.
So far I've tried using structured table references, but they only refer to columns? I don't know how to get it to associate a size with the weight in the cell right beside it.
There isn't a formula I can use either that takes the size of the object and spits out the weight either, because the values come from a numerical solution that the scientific paper I'm looking at doesn't specify.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
vlookup
喜欢:用户输入D1和D2中的大小吐出重量。
You can use
vlookup
like so:User enters the size in D1 and D2 spits out the weight.
尝试
lookup()
函数•cell e2 中使用的公式
Try just
LOOKUP()
Function• Formula used in cell E2