Calculate a Date

M

Mac55

How would you dtermine a date 2 years into the future and taken to the 1st of
the following month if that date does not occur on the 1st of the month.

For example, hire date is 7/18/08 and I want determine a promotion date that
is 2 years from the hire date. Then because we only give promotions on the
1st day of the month, the example promotion date would be 8/1/10.

What formula would I use to automatically calculate this?

New to date functions.
 
R

Ron Rosenfeld

How would you dtermine a date 2 years into the future and taken to the 1st of
the following month if that date does not occur on the 1st of the month.

For example, hire date is 7/18/08 and I want determine a promotion date that
is 2 years from the hire date. Then because we only give promotions on the
1st day of the month, the example promotion date would be 8/1/10.

What formula would I use to automatically calculate this?

New to date functions.


=DATE(YEAR(A1)+2,MONTH(A1)+(DAY(A1)>1),0)+1

--ron
 
R

Ron Rosenfeld

=DATE(YEAR(A1)+2,MONTH(A1)+1,1)

I think you overlooked this part of the request:
... taken to the 1st of the following month **IF** that date does not occur on the 1st of the month.

In interpret that to mean that

7/1/2008 --> 7/1/2010
7/2/2008 --> 8/1/2010

--ron
 
S

Shane Devenshire

Hi,

You could use the formula:

=EOMONTH(A1,24-(DAY(A1)=1))+1

The EOMONTH function is part of the Analysis ToolPak which in Excel 2003 or
earlier, you can attach by choosing Tools, Add-ins, Analysis ToolPak.

Cheers,
Shane Devenshire
Microsoft Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Date formula 3
Dates 2
Excel Message box with days of month & date. 1
Eligibility Dates 3
IF and DATE Formula Help PLEASE 6
Payroll Forecast Calc 2
Calculate Time 2
add 2 months and a variable number of days to a date 3

Top