大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

转换日期格式 Microsoft Excel 2007/2010 Convert date/time

[复制链接]
跳转到指定楼层
1#
发表于 2009-12-30 11:19:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
中文解释就不必了吧,蛮简单的,有图看!

In this example, we have a date/time value in cell A1 and we'd like to remove the time portion from this value.

In cell B1, we've entered the following formula:

    =MONTH(A1) & "/" & DAY(A1) & "/" & YEAR(A1)

The order of how you use the Year, Month, and Day functions will depend on how you're formatting your date.

In this example, we've formatted cell B2 with the following format:

You may need to reorder the Year, Month, and Day functions based on your Date format selected in Excel.

手机版|大马资讯论坛  

GMT+8, 2024-4-28 06:35 , Processed in 0.021892 second(s), 13 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表