Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I subtract days from a cell that has dates?

For example, what's a formula that will take 3/2/2011 and return this value 2/28/2011?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

If you have one cell that is formatted as a date (e.g. 3/2/11) and subtract 2 from it, you will get 2/28/11: enter image description here

For example your formula would be

A1-2
share|improve this answer
add comment

More generally, you can decompose a given date into YEAR(), MONTH(), and DAY() values, then recombine them via DATE(). For instance, to add six months and a day to A1

=DATE(YEAR(A1), MONTH(A1)+6, DAY(A1)+1 )
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.