ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Adding dates (https://www.excelbanter.com/excel-worksheet-functions/18229-adding-dates.html)

Natalie

Adding dates
 
Hi,

How do I add dates in Excel -

Cell 1 Cell 2
10/03/04 I want to put 6 months from Cell 1 date.

I know i can add the days, but can I make it too return 10/09/04?

Thanks



Arvi Laanemets

Hi

=MIN(DATE(YEAR(A1),MONTH(A1)+6,DAY(A1)),DATE(YEAR( A1),MONTH(A1)+7,0)
returns the date 6 months from date in cell A1, or when there is less days
in future month then day number in A1, then the last day in month 6 months
of date in A1.

When you have Analysis Toolpack Add-in installed, then you can use
=EDATE(A1,6)
which does exactly same as first formula.

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"Natalie" wrote in message
...
Hi,

How do I add dates in Excel -

Cell 1 Cell 2
10/03/04 I want to put 6 months from Cell 1 date.

I know i can add the days, but can I make it too return 10/09/04?

Thanks






All times are GMT +1. The time now is 01:39 AM.

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