【问题标题】:How to filter out data based on a condition如何根据条件过滤掉数据
【发布时间】:2019-08-23 18:21:40
【问题描述】:

我有一份志愿者主名单。我需要另一个志愿者列表,其中包含他们的信息,只要他们没有被选为非活动状态。如果他们现在正在联系,稍后联系,新注册,甚至没有数据。如果它说不活动,我不希望它们出现在我的第二个工作表中。就这样。

这是电子表格

https://docs.google.com/spreadsheets/d/1c075Gervxl0fzZISswhyQ2Z8g61TZhS8IGvl1EEK2o0/edit?usp=sharing

【问题讨论】:

    标签: google-sheets filter google-sheets-formula google-sheets-query google-query-language


    【解决方案1】:

    你可以使用query()函数:

    =query('Master Volunteer List'!A:I,"Select * where G = ''")

    或者你可以使用filter()函数:

    =filter('Master Volunteer List'!A2:I,'Master Volunteer List'!G2:G = "")

    过滤器功能不会拾取标题行。所以你需要

    1. filter() 函数放在单元格A2
    2. 并手动填充A1:G1 中的标题行

    【讨论】:

      【解决方案2】:

      使用这个查询公式:

      =QUERY('Master Volunteer List'!A:I, "where not G = 'y'", 1)
      


      您甚至可以像这样删除 Inactive 列:

      =QUERY('Master Volunteer List'!A:I, "select A,B,C,D,E,F,H,I where not G = 'y'", 1)
      

      【讨论】:

        猜你喜欢
        • 2021-04-21
        • 2019-09-20
        • 2021-07-22
        • 2022-12-09
        • 2018-10-08
        • 1970-01-01
        • 1970-01-01
        • 2018-10-04
        相关资源
        最近更新 更多