3 months prior and 3 months post a date

R

renee

My sales training takes place on 2007/10.

How do I get excel to calculate in another column the 3 months prior to this
date and the 3 months post this date.

i.e. 2007/09
2007/08
2007/07
2007/11
2007/12
2008/01
 
M

Mike H

Hi,

Asssuming a properly formatted date in A1 try this

=DATE(YEAR(A1),MONTH(A1)+3,DAY(A1))

Change +3 to -3 for 3 months previous

Mike
 
B

Bob Phillips

=LEFT(A20,4)+(--RIGHT(A20,LEN(A20)-FIND("/",A20))>9)&"/"&(RIGHT(A20,LEN(A20)-FIND("/",A20))+3)-(--RIGHT(A20,LEN(A20)-FIND("/",A20))>9)*12

and

=LEFT(A20,4)-(--RIGHT(A20,LEN(A20)-FIND("/",A20))<4)&"/"&(RIGHT(A20,LEN(A20)-FIND("/",A20))-3)+(--RIGHT(A20,LEN(A20)-FIND("/",A20))<4)*12

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Top