Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets Add Days Months Years to Date

· 4 min read · Home Tech

In this article
  1. Understanding Date Storage in Google Sheets
  2. Adding Days to a Date
  3. Adding Months to a Date
  4. Adding Years to a Date
  5. Combining Days, Months, and Years
  6. Common Mistakes and How to Fix Them
  7. Alternatives: Using the DATE Function and Array Formulas
  8. Frequently Asked Questions

Yes, Google Sheets can add days, months, and years to a date using simple formulas. Enter your start date in a cell, then use =A1+30 for days, =EDATE(A1, 3) for months, and =DATE(YEAR(A1)+2, MONTH(A1), DAY(A1)) for years. This article explains each method, how to combine them, and how to avoid common errors.

Understanding Date Storage in Google Sheets

Google Sheets stores dates as serial numbers. Each date is an integer counting the number of days since December 30, 1899. For example, January 1, 2024 is serial number 45292. Because of this, adding days is simple arithmetic: just add the number of days to the serial number. This system also means that dates before 1900 are handled differently, and time is stored as a fractional part of the day.

Adding Days to a Date

The most direct way to add days is with the plus operator. If cell A1 contains a date, =A1+30 returns the date 30 days later. You can also use the DATE function: =DATE(YEAR(A1), MONTH(A1), DAY(A1)+30). This is more verbose but makes the logic clear. For adding a specific number of weekdays (excluding weekends), use =WORKDAY(A1, 10) to add 10 business days, or =WORKDAY.INTL(A1, 10, 11) to exclude weekends and holidays you specify.

Adding Months to a Date

Use the EDATE function to add months. The syntax is =EDATE(start_date, months). For example, =EDATE(A1, 3) adds three months. If the start date is January 31, adding one month returns February 28 (or February 29 in a leap year) because February has no 31st. This is the standard behavior. If you need to keep the exact day-of-month (e.g., always the last day of the month), you can use =EOMONTH(A1, months) to get the last day of a month that is a certain number of months away.

Adding Years to a Date

There is no dedicated EYEAR function, but you can combine DATE, YEAR, MONTH, and DAY. For example, =DATE(YEAR(A1)+2, MONTH(A1), DAY(A1)) adds two years. Be careful with February 29: if the original date is February 29, 2024, adding one year gives March 1, 2025 because 2025 is not a leap year. If you want to always get February 28 in non-leap years, you need a more complex formula, but the simple version is fine for most uses.

Combining Days, Months, and Years

You can add all three at once. For example, to add 1 year, 2 months, and 15 days to a date in A1, use =DATE(YEAR(A1)+1, MONTH(A1)+2, DAY(A1)+15). This works because the DATE function automatically normalizes overflow: if the month is 14, it becomes February of the next year. Similarly, if the day is 45, it rolls into the next month. This is often the cleanest way to handle combined additions.

Common Mistakes and How to Fix Them

  • Formatting the result as a number: After adding days, the cell may show a serial number like 45322. Go to Format > Number > Date to display it correctly.
  • Using EDATE with a text string: EDATE expects a date value. If A1 contains text like "2024-01-01", wrap it with DATEVALUE(A1) or use EDATE(DATEVALUE(A1), 3).
  • Adding months to a date that doesn't exist: As noted, January 31 plus one month becomes February 28. If you need the last day of the next month, use EOMONTH.
  • Forgetting to use absolute references: When dragging a formula down, use $A$1 if you want to always reference the same cell.

Alternatives: Using the DATE Function and Array Formulas

For adding a fixed number of days to a range of dates, you can use an array formula. For example, =ARRAYFORMULA(A1:A10 + 30) adds 30 days to each date in A1:A10. For months, =ARRAYFORMULA(EDATE(A1:A10, 3)) works similarly. If you need to add years to a range, combine with DATE inside ARRAYFORMULA: =ARRAYFORMULA(DATE(YEAR(A1:A10)+1, MONTH(A1:A10), DAY(A1:A10))).

Frequently Asked Questions

How do I add days to a date in Google Sheets?

Simply use the plus operator: =A1+7 adds 7 days. Ensure the cell with the formula is formatted as a date.

What is the difference between EDATE and EOMONTH?

EDATE returns the same day of the month in the target month (or the last day if the day doesn't exist). EOMONTH returns the last day of the target month. For example, EDATE("2024-01-31", 1) returns February 28, 2024, while EOMONTH("2024-01-31", 1) also returns February 28, 2024, but EOMONTH("2024-01-15", 1) returns February 29, 2024.

Can I add years without using the DATE function?

No, there is no dedicated function. The standard method is =DATE(YEAR(A1)+n, MONTH(A1), DAY(A1)). You could also use =EDATE(A1, n*12) to add n years, since EDATE handles month overflow correctly.

Why does my date show as a number after adding?

This happens when the cell format is set to "Number" instead of "Date". Select the cell, go to Format > Number > Date, or use the custom format option to display it as you like.

How do I add business days only?

Use =WORKDAY(start_date, days) to add a number of weekdays (Monday to Friday). To exclude holidays, add a range of holiday dates as the third argument: =WORKDAY(A1, 10, $C$1:$C$5).

What if I need to add months and keep the last day of the month?

Use =EOMONTH(start_date, months). For example, =EOMONTH("2024-01-15", 1) returns February 29, 2024. If you want the last day of the month that is a certain number of months after a date, this is the function to use.