Calculate 1st day of month

PaulS

Board Regular
Joined
Feb 26, 2006
Messages
66
Can the expert give me the formula in cell A16 for the following:
Cell A15 containes a date e.g. 1 jan 2014 (always 1st of month) ; cell D15 contains the number 2 (number of months; can be anything from 1 to 11)
I want in cell A16 the formula that returns a date (also 1st day of month) 1 mar 2014 ( A15 + 2 months).
Thanks,
Paul
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
=date(year(a15),month(a15)+d15,day(a15))

Or, if you always want to return the first of the month...
=EDATE(A15,D15)
 
Upvote 0
See if this formula does what you want...

=DATE(YEAR(A15),MONTH(A15)+D15,1)
 
Upvote 0

Forum statistics

Threads
1,217,326
Messages
6,135,906
Members
449,970
Latest member
pfisher99

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