google-sheets - How to Use formula to insert Month to Date Automatically
问题描述
I want to use a single formula in cell A2 to insert Month to date Automatically. (in descending order). Only show date within this month (September)
For example, Today is 9/2/2021. It will show: 9/2/2021 9/1/2021
Let's say we entering the next day 9/3/2021. It will show: 9/3/2021 9/2/2021 9/1/2021
https://docs.google.com/spreadsheets/d/1Rq7_yGZjXEqN84BIKmmZ0a8qlcPF2ZIgvdCD2aorGKc/edit?usp=sharing Thank you so much for your help.
解决方案
A2
根据以下日期尝试此操作B1
:
=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))
推荐阅读
- java - Jackson - 带有列表的 Java 对象
- r - 将r中的数据矩形化的简单方法
- java - 如何使用@concat 函数在 ARM 模板中转义单引号
- java - 当 IDENTITY_INSERT 设置为 OFF 时,使用 Hibernate 批量插入时出现错误“无法在表中插入标识列的显式值”。
- maven - 子项目不从 Super POM 获取依赖项
- redmine - Redmine API 获取时间条目报告
- vue.js - 如何复制 VueJS 项目?
- tsql - CREATE FUNCTION 失败,因为没有为第 1 列指定列名。函数的 Multiple 参数出错
- android - Lottie Android - 如何从一个位置到另一个位置并按范围重复?
- c# - java.lang.IllegalArgumentException:没有这样的服务 ComponentInfo{/com.SampleApp.AttendanceApp.ServiceClass}