Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

In column A, I have today's date 18/06/2013 and I want to add 25 days to it, but because I have a list of 100 dates (all different) I need to do the same thing that =DATE(2013,06,18)+25 would do but if you look in Open Office you can do the same thing by running =A1+25 and that gives you the date in 25 days, in Google that does not work.

So, how do I implement something similar in Google Spreadsheets?

share|improve this question
add comment

1 Answer

What you're looking for is this formula:

=ARRAYFORMULA(IF(ISBLANK(A:A)=TRUE,"",(DATE(YEAR(A:A),MONTH(A:A),DAY(A:A)+25))))

It says:

  • if no date is present in column A then show nothing, else
  • get the separate entities of the date (year, month, day) and add 25

The ARRAYFORMULA will take on complete column ranges. If you have a header in A1, then simply start all ranges like this: A2:A

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.