本帖最后由 CAIT 于 2024-9-23 16:22 编辑
{IIF(Weekday(默认日期, 2) >= 1 And Weekday(默认日期, 2) <= 5 And Not IsNothing(请假时长) And IsNothing(工时合计), "LightGreen",
IIF(Weekday(默认日期, 2) >= 1 And Weekday(默认日期, 2) <= 5 And IsNothing(请假时长) And Not IsNothing(工时合计), "LightGreen",
IIF(Weekday(默认日期, 2) = 6 And Not IsNothing(加班时长) And Not IsNothing(工时合计), "LightGreen",
IIF(Weekday(默认日期, 2) = 6 And IsNothing(加班时长) And IsNothing(工时合计), "LightGreen",
IIF(Weekday(默认日期, 2) = 7 And Not IsNothing(加班时长) And Not IsNothing(工时合计), "LightGreen",
IIF(Weekday(默认日期, 2) = 7 And IsNothing(加班时长) And IsNothing(工时合计), "LightGreen",
"yellow"))))))}
按照条件,加班时长和公式合计都为空的时候,应该也显示绿色才对,这两条加粗的公式没有生效,还是会显示黄色,是有什么问题吗?
|