我有这个演示表
https://docs.google.com/spreadsheets/d/1iexvfvQVHUc8BooAxpDg8awf6CDpv80b6Z_etBNPc0M/edit?usp=sharing
我需要的是arrayformula
是从“ C”和“ D”列中查找下一个可用日期,并根据其应用颜色
还希望在过去的日期中使用“过去”
我在F校有我的预期结果,因为很难解释我的需求
请帮忙。
答案 0 :(得分:0)
=ARRAYFORMULA(QUERY({IFERROR(QUERY(IF(LEN(C2:C),
IF((C2:C<TODAY())*(D2:D<TODAY()), "Past",
IF((C2:C<TODAY())*(D2:D>TODAY()), "On Going now", )), ),
"where Col1='Past' or Col1='On Going now'"),"");
QUERY(IF(LEN(C2:C),
IF((C2:C>TODAY())*(D2:D>TODAY()), "Next Available", ), ),
"where Col1='Next Available' limit 1")},
"where Col1 is not null"))