calculating progressive months

latete

New Member
Joined
Oct 17, 2002
Messages
2
I'm a newbee to this board. I'm entering enter a date (October 1, 2002) in say A1. then, starting in A2 through A362, I want to have each row display the next month. Currently, I am using a formula to add 31 to previous field (formular for A3= "=a2+31", A4= "A3+31" and so on. That doesn't work each time because some months have 30,31,28 days. By the time I get to the the fifth year, It starts to skip a month approximately every five years. How can I do this accurately? Thanks,

Latete
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
On 2002-10-18 16:40, Corticus wrote:
Hi,

1 way, using EDate()

[..]

EDate requires the analysis toolpak

-or-

=DATE(YEAR(A1),MONTH(A1)+1,1)

without the toolpack.

HTH,
Corticus

The equivalent of

=EDATE(A1,1)

would be

=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
This message was edited by Aladin Akyurek on 2002-10-18 16:47
 
Upvote 0
Tru,

My formula will go to the first day of the next month.

10/05/02 would go to
11/01/02

Thanks Aladin.
 
Upvote 0
just because it is a slow friday, techincally I think
=MIN(DATE(YEAR(A3),MONTH(A3)+1,DAY(A3)),DATE(YEAR(A3),MONTH(A3)+2,0))

would be the exact the equivilant of
=EDATE(A3,1)
 
Upvote 0
Thanks all. I was able to use the EDATE function. It worked like a charm. Thanks,again.

Latete
 
Upvote 0
You might also like to consider doing it without a formula.

Select your range of cells, go to Edit>Fill>Series and select Type(Date), DateUnit(Month), StepValue(1).
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,028
Members
448,940
Latest member
mdusw

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