Google sheets 使用Google Sheets/Excel从今天日期获取当前星期日日期
我需要从今天的日期获取当前的星期日日期 我试过了,但它给出了前一周的周日,预计日期是2020年10月11日(今天是2020年10月13日) 以下是今天与预期值的对比Google sheets 使用Google Sheets/Excel从今天日期获取当前星期日日期,google-sheets,excel-formula,google-sheets-formula,Google Sheets,Excel Formula,Google Sheets Formula,我需要从今天的日期获取当前的星期日日期 我试过了,但它给出了前一周的周日,预计日期是2020年10月11日(今天是2020年10月13日) 以下是今天与预期值的对比 Formula that uses this Date -> Result 10 Oct -> 04 Oct 11 Oct -> 11 Oct 12 Oct -> 11 Oct 13 Oct -> 11 Oct 14 Oct -> 11 Oct 15 Oct -> 11 Oct
Formula that uses this Date -> Result
10 Oct -> 04 Oct
11 Oct -> 11 Oct
12 Oct -> 11 Oct
13 Oct -> 11 Oct
14 Oct -> 11 Oct
15 Oct -> 11 Oct
16 Oct -> 11 Oct
17 Oct -> 11 Oct
18 Oct -> 18 Oct
19 Oct -> 18 Oct
=TODAY() - (WEEKDAY(TODAY()) - 1) - 7
在列A中输入日期,在B1中输入:
=A1-(WEEKDAY(A1)-1)
我已经试过了,但它给出了前一周的周日,预计日期是
2020年10月11日(今天是2020年10月13日)
您不需要-7
。只需尝试:
=TODAY()-(工作日(TODAY())-1)
正如另一个答案所建议的,用所需的日期替换Today()