简体   繁体   中英

how to show last 12 month date when I enter date/year for excel

我需要excel的帮助,当我输入日期/年份时如何显示最近12个月的日期,例如,如果输入02 Jan 17,那么结果将显示我2月16日,它显示最近12个月的日期。

=DATE(YEAR(A1)-1,MONTH(A1),DAY(A1)+1)

(即使当日是一个月的最后一天,也能给出正确的答案)

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