Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我会将当月的所有日期列在一个列中,并在当月 1 日更新到下个月,并且不需要我在系统中输入任何内容。我玩过多个 IF 函数和不同的日期公式,但没有任何效果。
在您的第一个单元格中,通过强制 1 作为日期并重新使用当前日期的年份和月份来重建该月的第一个日期:
=DATE(YEAR(TODAY()), MONTH(TODAY()), 1)
在接下来的 30 个单元格中,使用并拖动它:
=IFERROR(IF(MONTH(A1+1)=MONTH(A1),A1+1,""), "")
我敢肯定有一种更清洁的方法,但我不会被打扰。