跳到主要内容

如何在Excel中将各种非标准日期格式转换为标准日期?

当您使用Excel工作簿时,您可能会遇到各种非标准日期格式。 Excel无法识别它们,您不能将它们用于任何计算目的,也不能根据需要更改它们的格式。 您如何将这些奇怪的日期格式更改为Excel标准日期?

使用公式将存储为文本的日期转换为正常的Excel日期
使用文本到列功能将数字转换为正常的Excel日期
使用 Kutools for Excel 轻松将各种非标准日期转换为正常 Excel 日期


使用公式将存储为文本的日期转换为正常的Excel日期

在这里,我将讨论使用DateValue函数将文本日期更改为正确的Excel日期。 输入时 “2013 / 03 / 21 到单元格中,日期前的撇号用于向Excel表示该单元格中的值是文本值(请参见以下屏幕截图)。 您可以按照以下步骤将此文本日期转换为Excel日期:

doc-convert-normal-date1

1。 在相邻的单元格B1中,输入公式 =日期值(A1),请参见屏幕截图:

doc-convert-normal-date2

2。 然后按 输入 键,公式将返回数字41317。这是正确的答案,但是格式错误。 因此,您需要更改日期格式。

3。 选择单元格B1并单击鼠标右键,选择 单元格格式 从上下文菜单中。 在里面 单元格格式 对话框,单击 联系电话 > 日期,然后根据需要选择本地日期。 看截图:

doc-convert-normal-date3

4。 然后点击 OK,该数字已转换为正常的Excel日期。 然后选择单元格B1并将填充手柄拖到要包含此公式的范围内。 看截图:

doc-convert-normal-date4

Tips::也许您也有这种日期格式 三月2013 12是, 日期值 函数也可以将其更改为Excel日期。 这样做:

1。 输入公式 = DATEVALUE(RIGHT(A1,2)&“-”&MID(A1,6,3)&“-”&LEFT(A1,4)) 进入空白单元格B1。 看截图:

doc-convert-normal-date5

2。 然后点击 输入 键,选择单元格B1,然后将填充手柄拖到所需的范围。 看截图:

doc-convert-normal-date6

这只是两个简单的示例,如果您有任何其他文本日期格式,则需要其他公式来处理。

一键式将各种非标准日期转换为Excel中的正常日期:

转换为日期 实用程序 Kutools for Excel 可以帮助您在Excel中一键快速将各种非标准日期同时转换为正常日期。 立即下载 Excel 版 Kutools! (30 天免费试用)


使用文本到列功能将数字转换为正常的Excel日期

有时您可能会有一些数字,例如 20130321 在单元格中,但现在您要将其转换为正常的Excel日期 3/21/2013是, 文本到列 工具可以将数字转换为公认的Excel日期。

1。 选择要更改的单元格。

2。 点击 时间 > 文本到列将文本转换为列向导,检查 分隔和点击 下一页.

doc-convert-normal-date7

3。 在步骤2中,直接单击 下一页 继续。

doc-convert-normal-date8

4。 在第3步中,选择 日期 来自 列数据格式,并选择 年月日 来自 日期 下拉列表。 看截图:

doc-convert-normal-date9

5。 然后点击 完成,并且所选单元格中的数字已更改为正常的Excel日期。 查看屏幕截图:

doc-convert-normal-date10 -2 doc-convert-normal-date11

使用 Kutools for Excel 将各种非标准日期转换为正常 Excel 日期

不同的非标准日期需要不同的解决方案,因此我们需要一种方便且多功能的方法,该方法可以帮助我们将各种奇怪的日期同时更改为正常的Excel日期。 随着 转换为日期 of Kutools for Excel,您可以快速转换某些非标准日期格式,该格式无法通过Excel识别为正常日期格式。

申请前 Kutools for Excel首先下载并安装.

1。 选择要转换的非标准日期范围,然后单击 库工具 > 内容 > 转换为日期,请参见屏幕截图:

2.然后 转换为日期 弹出对话框,您可以看到所选范围内的所有非标准日期都同时转换为标准日期格式。 看截图:

  如果您想免费试用(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 (36)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How to convert dd.mm.yyyy to excel date format
This comment was minimized by the moderator on the site
Hello Soon,

Glad to help. I have solution for this. Just use the second method in the article: Convert Numbers To Normal Excel Date With Text To Columns Function. Please follow the instructions in the method, and just make sure you choose DMY from the Date drop down list in step 4. See screenshot. Then click Finish to get the correct result, which is 6/21/2022.

Please have a try.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Taking A1 as the cell which has the date formatted as dd.mm.yyyy, ~

Formula----> =TEXT(DATEVALUE(SUBSTITUTE(A1,".","-")),"mm-dd-yyyy")
This comment was minimized by the moderator on the site
Hello Siddhartha,

Thank you for your reply. But the formula doesn't work in my case. For example, I have date 21.06.2022 in cell A1. Use your formula and it returns the #VALUE! error value.

I have solution for this. Just use the second method in the article: Convert Numbers To Normal Excel Date With Text To Columns Function. Please follow the instructions in the method, and just make sure you choose DMY from the Date drop down list in step 4. See screenshot. Then click finish to get the correct result, which is 6/21/2022.

Please have a try.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
How do I remove the time form the date in excel?
This comment was minimized by the moderator on the site
Hello Harish,

Glad to help. Please see our article: https://www.extendoffice.com/documents/excel/875-excel-remove-time-from-date.html. In this article lists four methods to remove time from date. Please have a try. Have a nice day.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Select the column where that dates are > Ctrl+H > Find value as " *"; Replace value as blank > Replace all.
The date format would look something like this - dd-mm-yyyy 00:00:00.
Then change the date format to "Short Date".

Job done!
This comment was minimized by the moderator on the site
Hello Siddhartha,

Thank you again for your help. Have a nice day.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
how do i convert 2109 (YYMM) into 09/2021
This comment was minimized by the moderator on the site
=TEXT(DATE(YEAR(LEFT(F10,2))+(YEAR(TODAY())-YEAR(LEFT(F10,2)))-(TEXT(TODAY(),"yy")-LEFT(F10,2)),RIGHT(F10,2),1),"mm/yyyy")
This comment was minimized by the moderator on the site
Hello Siddhartha,

Thank you for your help. Your formula works perfectly. Have a nice day.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
I wanted to convert 1529557740 to this format Fri 22 Jun 2018 00:09:00. It didn't work. Can someone suggest
This comment was minimized by the moderator on the site
Found the answer: A2 / 86400 + 25569 - 5 / 24 (where A2 is column name and -5 UTC time offset for CST)
This comment was minimized by the moderator on the site
how do o convert from yyyyy-mm-ddd hh mm ss to yyyy-mm-dd?
This comment was minimized by the moderator on the site
how convert 2/1/2018 5:54:58 PM to Feb 01, 2018 3:08 PM
This comment was minimized by the moderator on the site
how to convert 12/14 to December 2014
This comment was minimized by the moderator on the site
Hi Team, how to convert date format from dd/mm/yyyy hh:mm:ss to dd-mm-yyyy hh:mm:ss by using any formula or simple step also. when am trying to do the format cells to change the date format, cells are remain same.pls do the needful.
This comment was minimized by the moderator on the site
Check out the example and formula of how to convert the exact data format which you want in the attached screen shot.
This comment was minimized by the moderator on the site
How to convert date format, '20.06.2016' to '20-06-2016' for applying the text formula?
This comment was minimized by the moderator on the site
Assuming the date is in cell A2, enter the following into cell B2 =SUBSTITUTE(A2,".","/")
This comment was minimized by the moderator on the site
=Text(dd-mm-yyyy)
This comment was minimized by the moderator on the site
I have an excel file that has a countdown function between time NOW and a future date/time. Works fine as long as I open the file every time on a laptop but when opened with a cell phone (IOS), the countdown calculates always to today's date as opposed to an assigned future date. Any thoughts?
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