Google电子表格将日期显示为月份的第一天 [英] Google spreadsheet to present date as first day of the month
本文介绍了Google电子表格将日期显示为月份的第一天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在谷歌电子表格中,我正在寻找一个数组公式,我可以使用它为给定日期提供一个月的第一天。例如。 A1 = 1/17/12 20:30,我会让B1读1/1/12等等。该公式必须保留日期格式,以便我可以在此示例中的B列按日期排序。
In google spreadsheet I'm looking for an array formula that i can use to provide the first day of a month for a given date. eg. "A1=1/17/12 20:30" and i would B1 to 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)
这篇关于Google电子表格将日期显示为月份的第一天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文