Thursday, February 2, 2023

E-Date And Eo-Month Formula in MS Excel

 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

यह तन विष की बेलरी, गुरु अमृत की खान। शीश दियो जो गुरु मिले, तो भी सस्ता जान।। इसका अर्थ?

 यह दोहा संत कबीरदास जी का है और इसका अर्थ बहुत ही गहरा और प्रेरणादायक है: दोहा: "यह तन विष की बेलरी, गुरु अमृत की खान। शीश दियो जो...