Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

share|improve this answer

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .