在7个单元格中填充当前周的日期

时间:2017-10-15 21:25:08

标签: excel

寻找一种用当前周日期填充七个单元格的方法。就像星期一 - 星期日和每个日期下面的单元格中的当前日期一样:

+--------+--------+---------+-----------+----------+--------+----------+--+
| SUNDAY | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY |  |
+--------+--------+---------+-----------+----------+--------+----------+--+
| 10/15  | 10/16  | 10/17   | 10/18     | 10/19    | 10/20  | 10/21    |  |
+--------+--------+---------+-----------+----------+--------+----------+--+

1 个答案:

答案 0 :(得分:0)

A1 中输入:

=IF(WEEKDAY(TODAY())=2,TODAY(),TODAY()-WEEKDAY(TODAY()-2))

B1 输入:

=A1+1

并复制:

enter image description here

因此,如果今天是星期一, A1 将是今天的日期。如果今天不是星期一,则 A1 将是上周一的日期(本周开始)