标签: google-sheets
例如https://docs.google.com/spreadsheets/d/179oMZ1h8cHC9T2yKotsmV9hdpDMIzLM9EOPW-vpobkg/edit#gid=2085573974
我想要Hours的总和,其中Status = TODO或INPROGRESS 和 Location = NYC或LA
Hours
Status
TODO
INPROGRESS
Location
NYC
LA
希望我对这个问题的措词很清楚,并感谢您的任何想法!
答案 0 :(得分:1)
使用查询:
=sum(QUERY(A2:D8,"Select C where (B = 'TODO' OR B = 'INPROGRESS') AND (D = 'NYC' or D = 'LA')"))