如何根据 Excel 中的行值引用表格中的单元格?

发布于 2025-01-18 02:24:33 字数 308 浏览 3 评论 0原文

所以我有一个两列的表,第一列是尺寸,下一列是重量。我想创建一个输入,让用户输入对象大小,然后下一个单元格会输出相应的重量。无论如何,在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

旧人哭 2025-01-25 02:24:35

您可以使用vlookup喜欢:

=VLOOKUP(D1,A:B,2,0)

用户输入D1和D2中的大小吐出重量。

You can use vlookup like so:

=VLOOKUP(D1,A:B,2,0)

User enters the size in D1 and D2 spits out the weight.

enter image description here

被你宠の有点坏 2025-01-25 02:24:35

尝试lookup()函数

“

•cell e2 中使用的公式

=LOOKUP(E1,A2:B4)

Try just LOOKUP() Function

FORMULA_SOLUTION

• Formula used in cell E2

=LOOKUP(E1,A2:B4)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文