2
這個問題有點類似於谷歌電子表格的多個列的過濾條件分組語法
Google Spreadsheet multiple column filter using OR
,但在那裏,他詢問相當於:
select count(*)
from Table
where A is not null and (B is not null or C is not null)
我想這樣做:
select count(*)
from Table
where A is not null OR (B is not null AND C is not null)
其實我想要做的是過濾在一個約會和我一直在使用
=FILTER(YEAR(Hours!A2:A)=2012,MONTH(Hours!A2:A)>=8)
給我八月前進。
但現在我需要爲該月的某一天添加限制。我需要這樣的:
= FILTER(MONTH(小時!A2:A)= 8,( MONTH(小時!A2:A)= 9 和 DAY(小時!A2:A)< =纔能有所有八月然後九月只到13日13))
。
有沒有一個語法允許這個?
太好了!解決方案簡單其中一個說.. uf!爲什麼我沒有想到這一點。我不能投票 - 我太新了。 – Keith