[英]Excel formula to get current month in text
Apologies if this has already been answered, but I couldn't find it anywhere...抱歉,如果已经回答了这个问题,但我在任何地方都找不到...
When I try to use =TEXT(MONTH(TODAY()),"MMMM")
, it returns "January", but I want the current month.当我尝试使用
=TEXT(MONTH(TODAY()),"MMMM")
,它返回“January”,但我想要当前月份。 It returns "10" when I try =MONTH(TODAY())
, but adding the TEXT function seems to be messing something up.当我尝试
=MONTH(TODAY())
时它返回“10”,但添加 TEXT 函数似乎把一些事情搞砸了。
10 is not a date, or it is a date Jan 10th, 1900
. 10 不是日期,或者是日期
Jan 10th, 1900
。 Remove the MONTH part:删除 MONTH 部分:
=TEXT(TODAY(),"MMMM")
The "MMMM"
will make the change to the month based on the full date, no need to parse the date yourself. "MMMM"
将根据完整日期对月份进行更改,无需自己解析日期。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.