First and last months for a previous six months period of today's date.

girapas

Board Regular
Joined
Apr 20, 2004
Messages
150
I want to find the first and last months, and the years, for a previous six months period of today's date.
e.g.:
a) Today, the previous six month period first month is July (year 2012) and last month is December (year 2012).
b) If today's date is, say, March 5, 2013, the previous six month period first month is October (year 2012) and last month is February (year 2013).
Thanks in advance
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Maybe something like this:


Excel 2012
AB
1Start Date1/14/2013
2Six MonthsJuly 2012
3Last MonthDecember 2012
Sheet1
Cell Formulas
RangeFormula
B1=TODAY()
B2=TEXT(DATE(YEAR($B$1),MONTH($B$1)-6,DAY($B$1)),"mmmm yyyy")
B3=TEXT(DATE(YEAR($B$1),MONTH($B$1)-1,DAY($B$1)),"mmmm yyyy")


HTH,
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,679
Members
449,463
Latest member
Jojomen56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top