The EDATE function in Google Sheets is a valuable tool for managing dates and performing date calculations. It allows users to calculate a new date by adding or subtracting a specified number of months to a given starting date, making it ideal for scheduling, project planning, and financial analysis. This flexibility enables users to perform date manipulations efficiently, enhancing productivity and accuracy in various applications.
Syntax
EDATE(start_date, months)
- start_date: The initial date from which to calculate the new date.
- months: The number of months to add (positive number) or subtract (negative number) to/from the start date.
Example #1
EDATE("2023-10-01", 3)
This function will add 3 months to the date of October 1, 2023, resulting in a new date of January 1, 2024.
Example #2
EDATE("2023-10-01", -2)
This example subtracts 2 months from the date of October 1, 2023, yielding a new date of August 1, 2023.
Example #3
EDATE("2023-12-15", 6)
In this case, adding 6 months to December 15, 2023, gives a result of June 15, 2024.
Error handling
- VALUE! This error occurs if the start_date is not a valid date or if the months parameter is not a valid number.
- NUM! This error arises if the resulting date is not within the allowable range for date values in Google Sheets (e.g., too large or small).