ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Function to caculate date (https://www.excelbanter.com/excel-discussion-misc-queries/35750-function-caculate-date.html)

Jen

Function to caculate date
 
Is there a function that will add one or two months to a date in another cell?
Example: January 30,2005 in cell A1 in cell A2 March 30,2005


Also is there a function that will add a specific number of days?
Example: January 30, 2005 in cell A1 , would like to add 60 days to that

Thank you in advance


Anne Troy

Try this, Jen:
=DATE(YEAR(A1), MONTH(A1)+1, DAY(A1))
*******************
~Anne Troy

www.OfficeArticles.com


"Jen" wrote in message
...
Is there a function that will add one or two months to a date in another

cell?
Example: January 30,2005 in cell A1 in cell A2 March 30,2005


Also is there a function that will add a specific number of days?
Example: January 30, 2005 in cell A1 , would like to add 60 days to that

Thank you in advance




Max

"Jen" wrote
Is there a function that will add one or two months to a date in another

cell?
Example: January 30,2005 in cell A1 in cell A2 March 30,2005


Try in A2: =DATE(YEAR(A1),MONTH(A1)+2,DAY(A1))
(add 2 months)

Also is there a function that will add a specific number of days?
Example: January 30, 2005 in cell A1 , would like to add 60 days to that


Try in A2: =DATE(YEAR(A1),MONTH(A1),DAY(A1)+60)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----



Dave Peterson

=a1+60
(Format it as a date)

For the second question.

Jen wrote:

Is there a function that will add one or two months to a date in another cell?
Example: January 30,2005 in cell A1 in cell A2 March 30,2005

Also is there a function that will add a specific number of days?
Example: January 30, 2005 in cell A1 , would like to add 60 days to that

Thank you in advance


--

Dave Peterson


All times are GMT +1. The time now is 08:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com