简体   繁体   中英

Excel Date Formula + 3 Months

I am looking to have a formula that takes the date that is manually input in a cell (E2) and automatically populates a date in the column next to it (F2) that is + 3 months from the date manually input in (E2).

eg. If (E2) has 03/11/2021 input manually then the formula in (F2) would populate 03/02/2021. image of part of the sheet

Is this what you are looking for?

=DATE(YEAR(A1),MONTH(A1)+X,DAY(A1))

where X = 3

One can use EDATE() :

=EDATE(A1,3)

The second criteria is the number of Months to add.

EDATE will go to the number of months then try to equate the day. If the day exceeds the number of days in the target month it returns the last day of the target month.

For example =EDATE(DATE(2021,11,30),3) will return the 28th of February 2021.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM