How to get same or first day of next month based on given date in Excel?
This article is talking about getting same day or first day of next month based on given date in Excel. Please do as follows.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
The following formula can help you to get same day of next month based on given date in Excel. Please do as follows.
1. Select a blank cell for locating the result, then enter formula =EDATE(A2,1) into the Formula Bar, and then press the Enter key. See screenshot:
Note: in the formula, A2 is the date cell you need to get same day of next month based on.
2. Keep selecting the result cell, then drag the Fill Handle down until all results populating.
3. Now you need to custom the result cells as date format. Keep selecting all the results, click the Number Format box, and then click Short Date from the drop-down list under the Home tab.
Note: For some special date such as 2016/10/31, you will get the result as “2016/11/30” with above formula. Actually, date 2016/10/31 does not exist in October. If you really want to get the same date of next month based on date 2016/10/31, please use this formula =IF(DAY(EDATE(A2,1))<DAY(A2),NA(),EDATE(A2,1)) to get it down as below screenshot shown.
And you will get a #N/A error if the date does not exist in that month.
For getting the first day of next month based on given date in Excel, the following formula can help you.
Select a blank cell, enter formula =DATE(YEAR(A2),MONTH(A2)+1,1) into the Formula Bar and then press the Enter key. Then use the Fill Handle to get the rest dates. See screenshot.
Recommended Productivity Tools