excel公式从日期减去天数 [英] excel formula to subtract number of days from a date

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

问题描述



= 12/20/2010 - 180


在Excel中有一种方法可以使用一个公式:

将需要一定的日期(在这种情况下为12/20/2010),并减去180天。

解决方案

假设原始日期在单元格A1中:

  = DATE(YEAR(A1),MONTH(A1),DAY(A1)-180)


is there a way in Excel to have a formula that does something like this:

= 12/20/2010 - 180

which would take a certain date (12/20/2010 in this case) and subtract 180 days . .

解决方案

Assuming the original date is in cell A1:

=DATE(YEAR(A1), MONTH(A1), DAY(A1)-180)

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

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