将日期转换为数字的公式 [英] Formula to convert date to number

查看:597
本文介绍了将日期转换为数字的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在10/26/2013将日期转换为41573的公式,如在excel中所做的那样。
喜欢10/26/2013如何转换为41573。

I would like to know the formula to convert a date in 10/26/2013 to 41573 number as done in excel. Like how 10/26/2013 is converted to 41573.

推荐答案

如果将单元格的格式更改为那么这将显示一个单元格的日期值在幕后Excel将日期作为自01/01/1900以来的天数

If you change the format of the cells to General then this will show the date value of a cell as behind the scenes Excel saves a date as the number of days since 01/01/1900

如果你的日期是文本,你需要转换它,然后 DATEVALUE 将这样做:

If your date is text and you need to convert it then DATEVALUE will do this:

这篇关于将日期转换为数字的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆