Add one month each time

Alpacino

Well-known Member
Joined
Mar 16, 2011
Messages
511
Hi all
I would like a formula or VBA to add a month to a date each row
Eg
24/09/11
24/10/11
24/11/11
24/12/11
24/01/12
So on for the next year.

Thanks in advance
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try This
<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">24/09/2011</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">24/10/2011</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">24/11/2011</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">24/12/2011</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">24/01/2012</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">24/02/2012</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">24/03/2012</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A2</th><td style="text-align:left">=EDATE(<font color="Blue">A1,1</font>)</td></tr></tbody></table></td></tr></table><br />
 
Upvote 0
Even in Excel 2003 you can use EDATE by enabling Analysis ToolPak add-in

Tools > add-ins > tick Analysis ToolPak box

....or if you can't use EDATE or you don't want to then you can add a month with this formula

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

but that can give some odd results, e.g. if A1 is 31st Jan

To replicate EDATE you can use this version

=MIN(DATE(YEAR(A1),MONTH(A1)+1+{1,0},DAY(A1)*{0,1}))

change just the red 1 to any other number to add more than 1 month
 
Upvote 0
barry
it is same result
<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">01/01/2011</td><td style="text-align: right;;">01/01/2011</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">01/02/2011</td><td style="text-align: right;;">01/02/2011</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">01/03/2011</td><td style="text-align: right;;">01/03/2011</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">01/04/2011</td><td style="text-align: right;;">01/04/2011</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">01/05/2011</td><td style="text-align: right;;">01/05/2011</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">01/06/2011</td><td style="text-align: right;;">01/06/2011</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">01/07/2011</td><td style="text-align: right;;">01/07/2011</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A2</th><td style="text-align:left">=MIN(<font color="Blue">DATE(<font color="Red">YEAR(<font color="Green">A1</font>),MONTH(<font color="Green">A1</font>)+1+{1,0},DAY(<font color="Green">A1</font>)*{0,1}</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B2</th><td style="text-align:left">=EDATE(<font color="Blue">B1,1</font>)</td></tr></tbody></table></td></tr></table><br />
 
Upvote 0
Hello Yahya,

Yes, that's the idea - that formula will give exactly the same results as EDATE......for people who can't use EDATE itself....or don't want to :)
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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