Generating a column with a series of date excluding months Apr, Aug and Dec

planiolro

Board Regular
Joined
Oct 30, 2008
Messages
104
Dear all

I am supposed to generate a column with the following pattern:

Jan 2016
Feb 2016
Mar 2016

May 2016
Jun 2016
July 2016

Sep 2016
Oct 2016
Nov 2016

Jan 2017
Feb 2017
Mar 2017

May 2017
Jun 2017
July 2017
..................................
until I reach March 2027.

Basically I need to exclude the following months: Apr, Aug and Dec

Is there any way I could do this through a formula so as I do not have to type in manually the info I need?

Thank you in advance.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Assuming first date is in A1

then A2
=IF(MOD((MONTH(A1)+1),4)=0,EDATE(A1,2),EDATE(A1,1))

and copy down
 
Upvote 0
If you want to keep the blank rows as shown in your op, try in A2
=IF(MOD(ROW(),4)=0,"",EDATE($A$1,ROW(A1)))
 
Upvote 0
Assuming first date is in A1

then A2
=IF(MOD((MONTH(A1)+1),4)=0,EDATE(A1,2),EDATE(A1,1))

and copy down

Excellent! I worked absolutely fine. What about the following pattern:

56/3
56/3
56/3
56/4
56/4
56/4
56/5
56/5
56/6
....
Where the digits on left hand side before the "/" represent the age and the digit/s after the "/" represent the months and therefore the number after the "/" can't be bigger than 12.
 
Upvote 0
How are you calculating the age?
Have you got an example you can give us?
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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