Adding 1 month at a time to a date list

ad5184

New Member
Joined
Apr 8, 2002
Messages
13
I need to add one month at a time to a date list but with the months being different number of days I can't just add a number (eg 30) to the date above. I need the list to read eg...1/1/02, 2/1/02, 3/1/02, etc
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
On 2002-04-10 11:56, ad5184 wrote:
I need to add one month at a time to a date list but with the months being different number of days I can't just add a number (eg 30) to the date above. I need the list to read eg...1/1/02, 2/1/02, 3/1/02, etc

Use

=EDATE(A1,1) [ requires the Analysis Toolpak, an add-in ]

or

=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
 
Upvote 0
On 2002-04-10 11:56, ad5184 wrote:
I need to add one month at a time to a date list but with the months being different number of days I can't just add a number (eg 30) to the date above. I need the list to read eg...1/1/02, 2/1/02, 3/1/02, etc

type 1/1/02 in first cell, 2/1/02 in second cell, highlight both cells, then put cursor over crosshair at bottom right of last cell, click and drag - Excel will do the rest.
 
Upvote 0
This is just for fun (demented, I know)

The poor man's edate (will be wrong 3 days every four years).

=DATE(YEAR(A1),MONTH(A1)+1,MIN(DAY(A1),VLOOKUP(MONTH(A1)+1,{13,31;2,28;3,31;4,30;5,31;6,30;7,31;8,31;9,30;10,31;11,30;12,31},2,0)))

Okay, here is the fix until, I believe the year 4000
=DATE(YEAR(B2),MONTH(B2)+1,MIN(DAY(B2),VLOOKUP(MONTH(B2)+1,{13,31;2,28;3,31;4,30;5,31;6,30;7,31;8,31;9,30;10,31;11,30;12,31},2,0))+((MONTH(B2)=1)*(MOD(YEAR(B2),4)=0)*(DAY(B2)>28)))
This message was edited by iml on 2002-04-10 12:20
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,167
Members
448,554
Latest member
Gleisner2

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