formula or macro to add +1 month to date

usl

Board Regular
Joined
Jan 28, 2005
Messages
71
Hi,

I got in column A dats e.g. 01.01.2006
in column B I got time and in column C I got the actual value.

for each row I got a new value for every 15 min.

so 24 hours for the 01.01.2006 ist then from A2:A2977

I woudl like in ColumnD to add 1 month to the the value from column A,
hoe can I do that .

a formula or a macro to change the month January to e.g. Febura in all entries from A2:A2977.

hope you can help me
thanks a lot in advance
usl
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi usl

also, if a1 is just date, ex: a1= 2006-01-01:

=edate(a1,1)

if in A1 you have not just the date but also the time you have to add it.

Ex: a1= 2006-01-01 12:34:56. In this case

=edate(a1,1)+(a1-int(a1))

Format the result as date or datetime.

You may have to enable the Analisys ToolPack (Tools>Add-ins)

Hope this helps
PGC
 

Forum statistics

Threads
1,137,059
Messages
5,679,368
Members
419,823
Latest member
Mercy kiara

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