简体   繁体   English

将唯一列与两个单独的列匹配

[英]Match a unique column to two separate columns

I have one column in google sheet with unique values.我在谷歌表中有一个具有唯一值的列。 I then want to match this column to two separate columns.然后我想将此列与两个单独的列匹配。 See google sheet below for an example.有关示例,请参见下面的谷歌表。 I want the output in column "B".我想要“B”列中的 output。

[ https://docs.google.com/spreadsheets/d/10AOYlqsScoDUfcOaJd2opjjC_8zXSOP3_HBTOCCrb6U/edit#gid=0][1] [ https://docs.google.com/spreadsheets/d/10AOYlqsScoDUfcOaJd2opjjC_8zXSOP3_HBTOCCrb6U/edit#gid=0][1]

You can use maxifs :您可以使用maxifs

=maxifs($F$4:$H$14,$E$4:$G$14,A4)

在此处输入图像描述

A longer approach could be the following:更长的方法可能如下:

=max(vlookup(A4,$E$4:$F$14,2,false),vlookup(A4,$G$4:$H$14,2,false))

try:尝试:

=QUERY(FLATTEN(F4:F14, H4:H14), "where Col1 is not null")

0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM