当前日期为每月的第一天 [英] Present date as first day of the month
本文介绍了当前日期为每月的第一天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Google表格中,我正在寻找一个数组公式来提供给定日期的每月第一天.例如如果A1是1/17/12 20:30
,则B1将读取1/1/12
,依此类推.该公式必须保留日期格式,以便我可以按日期排序(在此示例中为B列).
In Google Sheets I'm looking for an array formula to provide the first day of a month for a given date. e.g. If A1 is 1/17/12 20:30
B1 would read 1/1/12
and so on. The formula must keep the date format so that I can sort by date, on column B in this example.
推荐答案
我认为您可以使用DATE公式撰写"新日期.例如
I think you could just "compose" a new date using the DATE formula. e.g.
=Date(Year(A1);Month(A1);1)
这篇关于当前日期为每月的第一天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文