Google表格:如何对多个条件(“或”进行“与”运算)和?

时间:2018-07-23 17:07:18

标签: google-sheets

例如https://docs.google.com/spreadsheets/d/179oMZ1h8cHC9T2yKotsmV9hdpDMIzLM9EOPW-vpobkg/edit#gid=2085573974

我想要Hours的总和,其中Status = TODOINPROGRESS Location = NYCLA

希望我对这个问题的措词很清楚,并感谢您的任何想法!

1 个答案:

答案 0 :(得分:1)

使用查询:

=sum(QUERY(A2:D8,"Select C where (B = 'TODO' OR B = 'INPROGRESS') AND (D = 'NYC' or D = 'LA')"))

enter image description here