excel求两列日期相差天数的总和,要求不能改数据表

2025-03-24 14:47:53
推荐回答(1个)
回答(1):

datedif(start_date,end_date,unit)
unit位置换成下面参数。
如你的要求就可写成datedif(a1,b1,d)
"y"
时间段中的整年数。
"m"
时间段中的整月数。
"d"
时间段中的天数。
"md"
start_date

end_date
日期中天数的差。忽略日期中的月和年。
"ym"
start_date

end_date
日期中月数的差。忽略日期中的日和年。
"yd"
start_date

end_date
日期中天数的差。忽略日期中的年。