跳到主要内容

Excel公式:将日期转换为文本

doc将日期转换为julia 1

本教程提供了TEXT函数,用于将日期转换为文本。

如果您想遵循本教程,请下载示例电子表格。
doc将日期转换为julia 1

通用公式:

TEXT(date,format)

参数

Date: the date you want to convert to text.
Format: the format you want the date displayed as.

回报值

TEXT函数返回到文本值。

这个公式如何运作

要将单元格B3中的日期转换为文本值,请使用以下公式:

=TEXT(B3,"mm/dd/yyyy")

媒体 输入 获得结果的关键。
doc将日期转换为julia 1

说明

TEXT功能:将数字转换为特定格式的文本。

备注

格式代码 公式 结果
YYYY = TEXT(B3,“ yyyy”) 2020
yy = TEXT(B3,“ yy”) 20
MMMMM = TEXT(B3,“ mmmmm”) S
MMMM = TEXT(B3,“ mmmm”) 九月
MMM = TEXT(B3,“ mmm”) 九月
mm = TEXT(B3,“ mm”) 09
m = TEXT(B3,“ m”) 9
DDDD = TEXT(B3,“ dddd”) 周六
DDD = TEXT(B3,“ ddd”) 周六
dd = TEXT(B3,“ dd”) 12
d = TEXT(B3,“ d”) 12
mm/dd/yyy = TEXT(B3,“ mm / dd / yyyy”) 09/12/2020
m / d / y = TEXT(B3,“ m / d / y”) 9/12/20
ddd,mm y = TEXT(B3,“ ddd,mmm y”) 20月XNUMX日,星期六

相对公式

相关功能


最佳办公效率工具

Kutools for Excel-帮助您从人群中脱颖而出

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

Kutools for Excel 拥有超过 300 个功能, 确保只需点击一下即可获得您所需要的...

产品描述


Office 选项卡 - 在 Microsoft Office(包括 Excel)中启用选项卡式阅读和编辑

  • 一秒钟即可在数十个打开的文档之间切换!
  • 每天为您减少数百次鼠标单击,告别鼠标手。
  • 查看和编辑多个文档时,可将您的工作效率提高50%。
  • 为 Office(包括 Excel)带来高效的选项卡,就像 Chrome、Edge 和 Firefox 一样。
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
=text(B3,"mmm") 을 치면 Sep 이 나와야 하는데, 9가 나오는 경우는 어떤 경우인건가요?
=text(B4,"mmmm")을 치면 September가 나와야 하는데 9월 이라고 나옵니다.

뭐가 잘못된 건지...
This comment was minimized by the moderator on the site
Hi, formulas provided in the tutorial is working at English version, for Korean version, please try formula:
TEXT(B3;"MMM") or TEXT(B3;"MMMM")
This comment was minimized by the moderator on the site
I tried already to do the formula. But the result was the same.
This comment was minimized by the moderator on the site
Hi, please notice there is not a comma , in the formula, is semicolon ; in the formula.
This comment was minimized by the moderator on the site
Right. I used a comma. If semicolon is used, the error occurs.
This comment was minimized by the moderator on the site
I am confused, which formula you use will occur errors, what error shown? #N/A or #NAME? or #VALUE!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations