回答編集履歴

1

文法の修正

2020/11/07 17:08

投稿

ogimo
ogimo

スコア0

test CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
 
4
4
 
5
- =QUERY('スタッフ一覧'!A2:BA, "SELECT A, B, C, D where B < date '"&TEXT(TODAY(),"YYYY-MM-DD")&"' and C > date '"&TEXT(TODAY(),"YYYY-MM-DD")&"' or B < date '"&TEXT(TODAY(),"YYYY-MM-DD")&"' and D > date '"&TEXT(TODAY(),"YYYY-MM-DD")&"'")
5
+ =QUERY('スタッフ一覧'!A2:BA, "SELECT A, B, C, D where (B <= date '"&TEXT(TODAY(),"YYYY-MM-DD")&"' and C >= date '"&TEXT(TODAY(),"YYYY-MM-DD")&"' and D IS NULL) or (B <= date '"&TEXT(TODAY(),"YYYY-MM-DD")&"' and D >= date '"&TEXT(TODAY(),"YYYY-MM-DD")&"')")