开发者

datedif in excel when the number format is [$-409]d-mmm-yyyy;@

I have two columns with the format [$-409]d-mmm-yyyy;@, I want to calculate the difference of date of these two columns. Please 开发者_如何学JAVAhelp.

Thanks


The =datedif() formula will do that for you, as per http://www.cpearson.com/excel/datedif.aspx:

=datedif(FirstDate, LaterDate, Interval)

Where FirstDate is the earlier date, LaterDate is the later date, and interval is the return type. I usually use 'm' for months, since this can be divided by 12 to get decimal years. Lots of other options, though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜