选择具有不同列值的所有行 - Google查询语言 [英] Selecting all rows with distinct column values - Google query language

查看:100
本文介绍了选择具有不同列值的所有行 - Google查询语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑下表:

测试名称 错误名称  状态

Name1     ;        Bug1        失败点击
名称2     &NBSP ;       Bug1        失败点击
NAME3      &NBSP ;      BUG2        失败点击
NAME4       &NBSP ;     Bug3        失败点击
NAME5        &NBSP ;                     ;           失败



我希望能够,o没有给出Google电子表格来选择包含不同错误名称列的所有行,所以结果如下:

姓名1             Bug1      >
Name3             Bug2     b $ b Name4             Bug3     b Name 5             Bug4        Fail

解决方案

假设你有范围为A1:C的示例表,我认为用这个公式可以达到预期的结果:


$ b

  = ArrayFormula(iferror(vlookup(独特的(B1:B),{B1:B,A1:C},{2,3,4},0)))

看看是否有帮助?


Consider the following table :

Test Name  Bug name  Status
Name1            Bug1        Fail
Name2            Bug1        Fail
Name3            Bug2        Fail
Name4            Bug3        Fail
Name5            Bug4        Fail
Name6            Bug3        Fail

I want to be able, on a given Google spreadsheet to select all rows containing distinct 'Bug name' columns, so the result should be the following :

Test Name  Bug name  Status
Name1            Bug1        Fail
Name3            Bug2        Fail
Name4            Bug3        Fail
Name5            Bug4        Fail

解决方案

Assuming you have the example table in range A1:C, I think the expected result could be achieved with this formula:

=ArrayFormula(iferror(vlookup(unique(B1:B),{B1:B,A1:C}, {2,3,4}, 0 )))

See if that helps ?

这篇关于选择具有不同列值的所有行 - Google查询语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆