[英]In Google Sheets, how can I find the value in a column of a row when you know the lookup column name and result column name?
I have a Sheet1
with data like this:我有一个包含如下数据的
Sheet1
:
one![]() |
two![]() |
three![]() |
four![]() |
---|---|---|---|
a![]() |
b ![]() |
c ![]() |
d ![]() |
e![]() |
f ![]() |
g ![]() |
h ![]() |
i![]() |
j ![]() |
k ![]() |
l![]() |
m![]() |
n ![]() |
o ![]() |
p ![]() |
I have Sheet2
with data like this:我有
Sheet2
的数据是这样的:
alpha ![]() |
value![]() |
---|---|
c ![]() |
|
k ![]() |
|
g ![]() |
|
c ![]() |
For each row in Sheet2
, I want to look up Sheet2
.对于
Sheet2
中的每一行,我想查找Sheet2
。 alpha
in Sheet1
. Sheet1
的alpha
。 three
and return the value of Sheet1
. three
并返回Sheet1
的值。 one
. one
。 I want to do this by putting an array formula in B2
.我想通过在
B2
中放置一个数组公式来做到这一点。
So, the expected result is:所以,预期的结果是:
alpha ![]() |
value![]() |
---|---|
c ![]() |
a![]() |
k ![]() |
i![]() |
g ![]() |
e![]() |
c ![]() |
a![]() |
I can use the new Google Sheet formulas they just released -- except named ranges.我可以使用他们刚刚发布的新 Google 表格公式——命名范围除外。 I feel like there is some clever trick using them, but I can't come up with it.
我觉得使用它们有一些巧妙的技巧,但我想不出来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.