Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
date + 6 months | Excel Worksheet Functions | |||
Adding months to dates should account for 28-30-31 day months | Excel Worksheet Functions | |||
converting months to years and months??? | Excel Discussion (Misc queries) | |||
How do i change 15 months to read 1 year and 3 months? | Excel Discussion (Misc queries) | |||
sum values between today and 6 months prior | Excel Worksheet Functions |