跳到主要内容

如何在Excel中轻松输入日期而不用斜线?

通常,当我们输入标准日期时,我们需要输入斜杠以将它们分开,例如 MM / DD / YYYY。 但是在某些情况下,您可能需要直接输入日期作为序列号,例如01022016,然后可以将日期转换为格式为1/2/2016的标准日期,如下图所示。 在本文的此处,我将介绍在Excel中轻松输入标准日期而不用斜杠的技巧。


箭头蓝色右气泡 使用文本到列输入不带斜线的日期

在Excel中,您可以应用“文本到列”功能将8位序列号快速转换为标准日期。

1.选择8位数字,然后单击 时间 > 文本到列。 看截图:
doc输入日期,不带斜线2

2.在 将文本转换为列向导的步骤1,检查 固定宽度 选项,请参见屏幕截图:
doc输入日期,不带斜线3

3。 点击 下一页 > 下一页向导的第3步,并检查 日期 选项 列数据格式 部分,然后选择 MDY 从下一个下拉列表中,并指定一个单元格作为目标。 看截图:
doc输入日期,不带斜线4

4。 点击 完成。 现在,序列号已转换为标准日期。
doc输入日期,不带斜线5

Tips::为了正确地转换为日期,可以先将数字转换为文本。


箭头蓝色右气泡 使用格式单元格功能输入不带斜线的日期

另外,您可以应用“单元格格式”功能将序列号转换为标准日期格式。

1.选择要右键单击的数字,然后选择 单元格格式 从上下文菜单中。 看截图:
doc输入日期,不带斜线6

2.然后在 单元格格式 对话框下 联系电话 标签,点击 定制版 来自 产品分类 窗格,然后转到“类型”文本框输入 ##“ /” ##“ /” #### 在右侧部分。 看截图:
doc输入日期,不带斜线7

3。 点击 OK。 所选数字已转换为标准日期。
doc输入日期,不带斜线11


箭头蓝色右气泡 用公式输入不带斜线的日期

IMoreover,您可以应用公式将数字转换为日期格式。

选择要使用的数字旁边的空白单元格,输入此公式 =DATE(RIGHT(A9,4),LEFT(A9,IF(LEN(A9) = 8,2,1)),LEFT(RIGHT(A9,6),2)),A9是要转换的数字,将自动填充手柄拖到要应用此公式的单元格上方,请参见屏幕截图:
doc输入日期,不带斜线9


箭头蓝色右气泡 使用 Kutools for Excel 输入不带斜杠的日期

如果你有 Kutools for Excel,您可以应用它 转换为日期 实用程序,可将多个非标准日期快速转换为标准日期。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

免费安装 Kutools for Excel,请执行以下操作:

选择要转换为日期的数字,然后单击 库工具 > 内容 > 转换为日期。 看截图:
doc kutools转换为日期1
doc kutools转换为日期2

最佳办公生产力工具

🤖 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 (7)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
excelentes opciones , pero en mi caso yo necesito que las personas involucradas en la captura siempre pongan el formato de fecha correcto les doy un ejemplo de como lo hacen, 080923, 08.09.23, y de esta forma la formula no los reconoce para hacer el calculo de la edad, y he estado buscando como hacer para que mis compañeros capturen bien la fecha, ya sea poniendo un tipo de formato preestablecido donde los obligue a capturar correctamente la fecha o algo con la validacion de datos.

espero me puedan ayudar, de antemano muchas gracias.
This comment was minimized by the moderator on the site
Thank you so much! That was very helpful. I used your 0#"/"##"/"#### to enter dates without slashes and display the 0 in front. Some of the images need to be enlarged to show the ". It was hard to tell if that was an " or an *.
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
比如我在輸入0329就會是本年的3月29日,而不是2029年的3月1 日呢?請問應該如何設定呢?謝謝你。
This comment was minimized by the moderator on the site
Hi, you can use this formula:
=DATE(TEXT(TODAY(),"yyyy"),LEFT(A2,2),RIGHT(A2,2))

A2 is the cell contains the string you want to convert to date.
This comment was minimized by the moderator on the site
How do I format this for the whole column so any new data that is inputted it will automatically convert it to dd/mm/yyyy? the above explains if you already have data in can this be done for any additional data you would like to add?
This comment was minimized by the moderator on the site
Hi, Faatimah, if you want the datat input in the future will be automatically converted to dd/mm/yyyy, firstly, you need to type one data in the column, such as 05062022 in A1, and then select the whole column A, and press Ctrl + 1 to display the Format Cells dialog, type ##"/"##"/"#### into the Custom secitoon textbox and click OK. Now the data entered in column A will be auto converted to dd/mm/yyyy.
This comment was minimized by the moderator on the site
How do I get a leading zero for 1-9 using ##"/"##"/"####?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations