如何使用公式自动插入月份至今

How to Use formula to insert Month to Date Automatically

我想在单元格 A2 中使用一个公式来自动插入月初至今。 (降序排列)。只显示本月(九月)内的日期

例如,今天是 9/2/2021。 它将显示: 9/2/2021 9/1/2021

假设我们进入第二天 9/3/2021。 它将显示: 9/3/2021 9/2/2021 9/1/2021

https://docs.google.com/spreadsheets/d/1Rq7_yGZjXEqN84BIKmmZ0a8qlcPF2ZIgvdCD2aorGKc/edit?usp=sharing 非常感谢您的帮助。

根据 B1 的日期在 A2 中尝试此操作:

=arrayformula(sort((eomonth(B1,-1))+(sequence(B1-eomonth(B1,-1),1)),1,0))

或使用 today():

=arrayformula(sort((eomonth(today(),-1))+(sequence(today()-eomonth(today(),-1),1)),1,0))