# Calculating and adding dates + n

sample.xls
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Assuming you put your initial date on G3 cell, you can use a formula like this:

=DATE(YEAR(G3),MONTH(G3)+8,DAY(G3))

to add 8 months to the initial date.
0
Commented:
Then you can use Conditional Formatting to change the fill color, like this:

=IF((\$E\$3-\$D\$3)>7,TRUE,FALSE)  - For Red fill
=IF(AND((\$E\$3-\$D\$3)<7,(\$E\$3-\$D\$3)>0),TRUE,FALSE) - For Amber fill

jppinto
sample.xls
0
Commented:

Hope this helps
sample.xlsx
0
Commented:
Hi, propolis,

What should the Target Date be when the Contact Date is 31/1/2012 and the number of months is one? 29/02/2012? 02/03/2012?

Thanks,
Brian.
0
Commented:
Propolis,

Assuming 29/02/2012, please see attached. Formula is...
=IF(OR(MID(C3,1,15)<>"contract date +",RIGHT(C3,7)<>" months"),"",EDATE(\$D\$2,MID(C3,17,LEN(C3)-16-7)*1))

Regards,
Brian.
sample-V2.xls
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
Thanks, propolis!
0
Commented:
Hi, propolis

May I know the limitations you faced with the solution I proposed?

Thanks!
0
Commented:
propolis, was there something wrong with my solution also?
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.