本文介绍了excel公式从日期中减去天数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Excel 中是否有一种方法可以使用这样的公式:
is there a way in Excel to have a formula that does something like this:
= 12/20/2010 - 180
= 12/20/2010 - 180
这将需要某个日期(在本例中为 12/20/2010)并减去 180 days ..
which would take a certain date (12/20/2010 in this case) and subtract 180 days . .
推荐答案
假设原始日期在单元格 A1 中:
Assuming the original date is in cell A1:
=DATE(YEAR(A1), MONTH(A1), DAY(A1)-180)
这篇关于excel公式从日期中减去天数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!