list of dates by month w/ same date

dwolf

New Member
Joined
Jul 6, 2011
Messages
3
Can anyone help me create a list of dates that increase by one month, but have the same date? I tried the following: =DATE(YEAR(G1),MONTH(G1)+1,DAY(G1)). However if my beginning date at G1 was the 31st of the month, then the result for February becomes March 3d.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
If it was 31st of January. What should the result be?
It can't be February 31st cuz it d.n.e!!
 
Upvote 0
Welcome to the board...

Building on Kparks comments...

Given hat March 3rd is not a desireable result, I would assume you want
Jan 31st to convert to Feb 28th (or 29th on leap year)

Try
=EDATE(G1,1)

This requires the analysis toolpack from Tools - Addins


Hope that helps.
 
Upvote 0
Thanks for the help. :)

The edate function helped, but did not fix the entire problem. What I am trying to do is to create a list of 60 months with the starting point being a variable. I tried edate,1, but after the first instance of February, all of the dates were the 28th.
 
Upvote 0
I'm not too sure but try
Code:
Your Cell=EDATE($G$1, 1)
Your Next Cell = EDATE($G$1, 2)

Then select both cells and copy down.

Again, I am not too sure about this EDATE() function so I think it may do the trick.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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