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
 

Some videos you may like

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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
 

Corticus

Well-known Member
Joined
Apr 30, 2002
Messages
1,579
Tru,

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

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

Thanks Aladin.
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743

ADVERTISEMENT

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)
 

latete

New Member
Joined
Oct 17, 2002
Messages
2
Thanks all. I was able to use the EDATE function. It worked like a charm. Thanks,again.

Latete
 
L

Legacy 11273

Guest
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).
 

Watch MrExcel Video

Forum statistics

Threads
1,123,281
Messages
5,600,720
Members
414,401
Latest member
grenona2020

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
Top