跳到主要内容

如何在Excel中将日期转换为工作日,月份,年份名称或数字?

假设您在单元格中输入日期,它显示为 12/13/2015。 有没有办法只显示月份或工作日,或者可能显示月份名称或工作日名称的文本,例如“十二月“, 要么 ”星期日下面概述的方法可以帮助您轻松转换任何类型的日期或设置其格式,以便在 Excel 中仅显示工作日名称或月份名称。

  1. 使用格式单元格将日期转换为工作日/月/年名称或数字
  2. 使用TEXT函数将日期转换为工作日/月份名称
  3. 使用CHOOSE函数将日期转换为工作日/月名
  4. 使用出色的工具将日期转换为工作日/月/年的名称或数字

使用格式单元格将日期转换为工作日/月/年名称或数字

我们可以自定义日期格式并将日期仅在 Excel 中显示为工作日名称或月份名称。

1。 选择要转换为星期、月份或年份名称/数字的日期单元格,右键单击并选择 单元格格式 从右键单击菜单中。

Kutools for Excel

在人群中脱颖而出

300+ 便捷工具
解决 Excel 中 80% 的问题
现在免费试用

告别繁琐的 VBA 和公式!

2。 在开幕 单元格格式 对话框中的 联系电话 标签,点击 定制版 ,在 产品分类 框,然后输入“DDD“ 进入 Type 框。

备注:“DDD" 将日期显示为简短的工作日名称,例如 "周六“。拿日期 3/7/2019 例如,下表说明了各种自定义日期格式选项:

  A B C
1 将“3/7/2019”显示为 格式代码 格式化结果
2 工作日(名称) DDD 星期四
3 DDDD 周四
4 月份(姓名) MMM 三月
5 MMMM 三月
6 月份(数字) m 3
7 mm 03
8 年份(数字) yy 19
9 YYYY 2019
10 该月的第几天(数字) d 7
11 dd 07

3。 点击 OK 按钮以应用自定义日期格式。

一键式将多个日期转换为Excel中的周/月/年名称或数字

您是否仍在通过右键单击并在“设置单元格格式”对话框中指定格式代码来手动将日期转换为一周中相应的一天?使用 Kutools for Excel 的 套用日期格式 功能,您只需在 Excel 中单击一下即可轻松将一系列日期显示为月份名称或星期几!

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

使用TEXT函数将日期转换为工作日/月的名称或数字

Microsoft Excel的 文字 函数可以帮助您使用指定的格式代码轻松地将日期转换为其相应的月份名称或工作日名称。

请输入公式 = TEXT(A2,“ mmmm”) 在空白单元格(本例中为单元格 C2)中,然后按 输入 钥匙。 然后拖动该单元格的填充手柄,根据需要将公式应用到该范围。

日期会立即转换为其相应的月份名称。 看截图:

提示: 你可以改变 “嗯嗯” 根据以下格式转换为其他格式代码 以上格式代码表。 例如,您还可以使用以下公式将日期转换为工作日名称 = TEXT(A2,“ dddd”).

想要脱颖而出? 立即使用 30 多个 Excel 日期功能提升您的专业知识!

使用 Kutools 的 30 多个日期功能增强您的 Excel 技能! 只需 3 分钟即可获得实用的日期处理专业知识,超越您的同事,并轻松获得加薪和晋升!

提高好感度

高效解决 Excel 日期问题,在工作中获得认可和赞赏。

家庭时光

告别 Excel 中重复且琐碎的日期任务,节省更多时间享受家庭时光。

为了更健康的生活

轻松批量插入、修改或计算日期,最大限度地减少每日点击次数并避免鼠标疲劳。

永远不用担心裁员

工作效率提升91%,解决Excel日期问题95%,提前完成任务。

放松心情

使用Kutools的13个日期公式,忘记复杂的公式和VBA代码,并简化您的工作。

获得 300+ 强大的力量 Kutools for Excel 适用于 1500 多种工作场景的工具仅需 $49.0 - 价值超过 4000 美元的传统 Excel 培训,为您节省大量费用。

使用CHOOSE函数将日期转换为工作日/月名

如果您发现难以记住并在公式中使用这些特定的格式代码,Excel 还允许您使用 选择 用于将日期转换为月份名称或工作日名称的函数。 您可以这样做:

在空白单元格中,请输入公式 = CHOOSE(WEEKDAY(B1),“ Sun”,“ Mon”,“ Tue”,“ Wed”,“ Thu”,“ Fri”,“ Sat”),然后按 输入 钥匙。 此公式会将单元格 B2 中的日期转换为星期几,如下图所示。

提示: 要将日期转换为月份名称,请应用以下公式: = CHOOSE(MONTH(B1),“ Jan”,“ Feb”,“ Mar”,“ Apr”,“ May”,“ Jun”,“ Jul”,“ Aug”,“ Sep”,“ Oct”,“ XNUMX月” “,” Dec“).

使用 Kutools for Excel 将日期转换为工作日/月份/年份名称或数字

虽然 Excel 中的 TEXT 函数可以有效地将日期转换为您想要的格式,但当日期分散在工作表中时,它就不太方便了。在这种情况下,Kutools for Excel's 套用日期格式 工具提供了卓越的解决方案,使您只需单击几下即可处理多个选择,并轻松将选择中的所有日期转换为其相应的月份或工作日名称。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

1。 选择一个或多个包含您将使用的日期的范围,然后单击 库工具 > 格式 > 套用日期格式.

2。 在 套用日期格式 对话框中,请选择日期格式 日期格式 框,然后单击 Ok 按钮。

提示:
  • 通过选择 03, 三月 or 三月 ,在 日期格式 框中,您可以将日期转换为月份名称或月份数字。
  • 通过选择 星期三 or 周三,您可以将日期转换为工作日名称。
  • 通过选择 01 or 2001,您可以将日期转换为年份数字。
  • 通过选择 14,您可以将日期转换为天数。

现在,所有选定的日期都已转换为您指定的日期格式,无论是月份名称、星期几还是您选择的任何其他格式。

笔记:

  • 套用日期格式 工具修改显示格式而不改变实际值,并且您可以通过按轻松恢复更改 按Ctrl + Z 撤销。
  • 想要访问 套用日期格式 特征? 下载 Kutools for Excel 现在! 除此之外,Kutools 还拥有 300 多个其他功能,并提供 30 天免费试用。 不要等待,今天就尝试一下吧!

相关文章

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (51)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
gostaria de uma maneira (fç) para formatar uma data pelo formato de número da semana.
Por exemplo: 04/10/22 seria a W40 ou 40a. semana do ano.
obg
This comment was minimized by the moderator on the site
Hi there,

Suppose the date is in the cell A1, you can enter the formula in another cell to get the week number from the given date quickly: =WEEKNUM(A1)
If you want to add the date in the formula, you can use the following: =WEEKNUM(DATE(2022,10,4))

Amanda
This comment was minimized by the moderator on the site
In Cell 1, Month is mentioned in Text format and how do I find the number of days for the same month in Cell 2
This comment was minimized by the moderator on the site
HOW DO I CONVERT 2ND MONDAY 2019 TO A DATE?
This comment was minimized by the moderator on the site
Suppose today is 25.10.19 that is Friday and I have to make any kind of statement in excel where I need every day to enter previous day date or you can say one day back date that is 24.10.19 which is Thursday in one of the cell in excel. So I tried for date one formula that is =Today()-1 ,so it becomes 24.10.19 but I don't know how to put formula for weekly day ,Can Anyone help me out
This comment was minimized by the moderator on the site
=CHOOSE(WEEKDAY(TODAY()-1),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
This comment was minimized by the moderator on the site
if I have 4th Thursday of Dec 2019, how would I calculate the date in excel , what will be the formulla
This comment was minimized by the moderator on the site
Hi Daniel,
First, define the day of weekday. In general, we can use 1 represents Sun, 2 represents Mon, …, and 7 for Sat.
Second, the Year and Month are fixed (2019 Dec)
Now we can use the formula =DATE(B3,C3,1+E3*7)-WEEKDAY(DATE(B3,C3,8-VLOOKUP(D3,B6:C12,2,FALSE))) to return the specified date. See screenshot:
Note: B3 is the year, C3 is Month, E3 indicates the nth day of week, D3 is the day of week, B6:C12 is the table where we define the day of weeks.
This comment was minimized by the moderator on the site
Hi,
How can I convert day and time (IST) to PST? For example, SUN 6:00 AM (IST) in column A2, I need the value for PST which is SUN 7:30 PM.
This comment was minimized by the moderator on the site
Hi Saran,
You can use Kutools formula – Add minutes to date: add 810 minutes (13.5 hours) to the IST time, and get the PST time.
This comment was minimized by the moderator on the site
02/01/2016 00:00 i Have date in this format and i want to convert it to the days of the week.....monday tuesday,wednesday etc. Kindly help
This comment was minimized by the moderator on the site
Hi,
Both =TEXT(A1,"dddd") and =TEXT(A1,"ddd") can convert the dates with time to days of week. Try them!
This comment was minimized by the moderator on the site
If I have a date in a1 (1/25/18) and I want a2 to give the month (Jan) but my months from the 25th - 26th of next month, ie; 12/26/17 - 1/25/17 would be Jan, and 1/26/18 - 2/25/18 would be Feb. So in my case if a1 is 1/27/18 would make a2 say Feb. What formula could I use? I can't find anything about setting your own date range to reflect a certain month, for like billing cycles for instance. Please help!!
This comment was minimized by the moderator on the site
Hi,

you can try this formula =IF(DAY(A1)>25,TEXT(DATE(YEAR(A1),MONTH(A1)+1,DAY(A1)),"MMMM"),TEXT(A1,"MMMM"))
This comment was minimized by the moderator on the site
id like to ask, how to compute for the # of days outstanding based on the cut off date : e.g. 07.21.17 ( cutt off date
This comment was minimized by the moderator on the site
Hi Owen,


Do you mean calculate days from today to the deadline? If so, you can try this formula =deadline date -TODAY()
This comment was minimized by the moderator on the site
hello, how can be show month period in this formate like 1 march 2017 to 31 march 2017, pls help
This comment was minimized by the moderator on the site
maybe this formula =TEXT(A1,"d mmmm yyyy") can help you
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations