Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 如何在google工作表中根据当前时间、日期和条件切换单元格值?_Excel_Google Sheets - Fatal编程技术网

Excel 如何在google工作表中根据当前时间、日期和条件切换单元格值?

Excel 如何在google工作表中根据当前时间、日期和条件切换单元格值?,excel,google-sheets,Excel,Google Sheets,我对google sheets相当陌生,我想做如下事情: IF ( (current time is within 8am - 2pm) AND (day is NOT (sunday OR saturday) ) THEN => cell value = "OPEN" ELSE => cell value = "CLOSED" 如果(和)小时(现在())>=8,小时(现在())=8,小时(现在())如果(和)小时(现在())小时(现在()

我对google sheets相当陌生,我想做如下事情:

IF ( (current time is within 8am - 2pm) AND (day is NOT (sunday OR saturday) ) 
THEN => cell value = "OPEN"
ELSE => cell value = "CLOSED"

如果(和)小时(现在())>=8,小时(现在())
=8,小时(现在())如果(和)小时(现在())小时(现在())嘿,谢谢一吨,当我看你的答案时它看起来很容易:)而且,如果我想上午8:15而不是上午8点,它将是8.25,对吗?嘿,谢谢一吨,当我看你的答案时它看起来很容易:)还有,如果我想上午8:15而不是上午8点,它将是8.25,对吗?
=IF(AND(HOUR(NOW())>=8, HOUR(NOW())<=14, WEEKDAY(NOW(),2)<6), "OPEN", "CLOSED")