E-Date And Eo-Month Formula in MS Excel
In Microsoft Excel, you can use the EDATE function to add a specified number of months to a date and return the new date. The syntax for the EDATE function is as follows:scss=EDATE(start_date, months)
- start_date is the date you want to start from.
- months is the number of months you want to add to start_date.
For example, to add 6 months to January 1, 2022, you would use the following formula:
scss=EDATE("2022-01-01", 6)
The result of this formula would be July 1, 2022.The EOMONTH function can be used to return the last day of the month that is a specified number of months before or after a given date. The syntax for the EOMONTH function is as follows:
scss=EOMONTH(start_date, months)
start_date is the date you want to start from.months is the number of months you want to add or subtract from start_date.
For example, to find the last day of the month that is 6 months after January 1, 2022, you would use the following formula:
scss=EOMONTH("2022-01-01", 6)
The result of this formula would be June 30, 2022.
No comments:
Post a Comment