gpt4 book ai didi

excel - 如何检查列表中是否缺少日期?

转载 作者:行者123 更新时间:2023-12-04 21:11:35 26 4
gpt4 key购买 nike

我有一个包含日期列表的 Excel 工作表

Thursday, May 30, 2013
Friday, May 31, 2013
Monday, June 3, 2013
Tuesday, June 4, 2013
Wednesday, June 5, 2013
Thursday, June 6, 2013
Friday, June 7, 2013
Tuesday, June 11, 2013
Wednesday, June 12, 2013
Thursday, June 13, 2013
Friday, June 14, 2013
Monday, June 17, 2013
Tuesday, June 18, 2013

我需要确定我是否缺少日期(仅限工作日)并将其插入不同颜色的背景。

我试过这个
=IF(A2=A1+1,"","Missing next day")

但它告诉我星期六不见了(我对周末不感兴趣)。

在上面的示例数据中, 6 月 10 日星期一 不见了

最佳答案

正如@SolarMike 所说:

=IF(A2=A1+(WEEKDAY(A1)=6)*2+1,"","Missing next day")

enter image description here

关于excel - 如何检查列表中是否缺少日期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50470838/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com