5. Add or Subtract Years to Date in Microsoft Excel 6. Add or Subtract a Combination of Years, Months, Weeks, and Days to Date in Microsoft Excel 1. Add or Subtract Days to Date with a Formula If you’re looking to add or subtract a specific number of days to a date in a cell ...
= DATE(YEAR(日期)+年数,MONTH(日期)+月数, 天(日期)+天数) 1。 选择要放置计算结果的空白单元格,键入公式=DATE(YEAR(A2)+3,MONTH(A2)+5,DAY(A2)+15),然后按输入键。 看截图: 备注:要减去年,月和日的组合,请使用以下公式=DATE(YEAR(A2)-3,MONTH(A2)-5,DAY(A2)-15). 2。 如果需要,请拖动...
When you subtract a more recent date (6-May-2015) from an earlier date (1-May-2015), the subtraction operation returns a negative number (-5) exactly as it should. The syntax of the Excel DATEDIF function, however, does not allow thestart dateto be greater than theend dateand therefore...
=DATE(YEAR(B3),(-12*5+MONTH(B3)),DAY(B3)) Add Years – First Day of New Year To add years to a date and return the first day of the calculated year, you can also use the DATE Function: =DATE(YEAR(B3),(12*3+1),1) Add / Subtract Years in Google Sheets The above examples...
Add or subtract a number of days, months, or years to or from a date in a project schedule by using a simple formula, or you can use a sheet function that is designed to work specifically with dates.
=Date2 – Date1 For example, to subtract date in cell B3 from the date in cell A3, apply the formula below in cellC3, and press theEnterkey to get the result. =B3–A3 Tip: This formula would only work with dates in a valid format. For instance, attempting to subtract an ...
Working with date-type data is a prerequisite in WPS spreadsheet. It entails duties such as adding and subtracting days, months, and years from dates. I've shown you three different ways to add or subtract years from an existing date in WPS spreadshe
Months(required) - the number of months to add to or subtract from the start date. A positive value returns a future date, a negative value - a past date. And here are a few examples of using the EDATE function in Excel: Note.By default, the EDATE function returns a serial number re...
2.13 Add or subtract years to a date 2.14 Add or subtract weeks to a date 2.15 Add or subtract workdays including or excluding holidays 2.16 Add or subtract specific year, month, days to a date 2.2 Add or subtract hours/minutes/seconds to times 2.21 Add or subtract hours/m...
Scenario 2: Subtracting Dates to Calculate Year Duration. Step 1:If you want to calculate the duration (in years) between two dates, you can simply subtract one date from the other, as mentioned in the screenshot; Step 2:Copy formula =YEAR(B2)-YEAR(A2) and paste in D2 to calculate ...