ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   3 months prior and 3 months post a date (https://www.excelbanter.com/excel-worksheet-functions/185981-3-months-prior-3-months-post-date.html)

Renee

3 months prior and 3 months post a date
 
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



Mike H

3 months prior and 3 months post a date
 
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

"renee" wrote:

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



Bob Phillips

3 months prior and 3 months post a date
 
=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)

"renee" wrote in message
...
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






All times are GMT +1. The time now is 11:55 AM.

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