MS Excel公式用于计算年、月和日的总数

huangapple go评论103阅读模式
英文:

MS Excel formula for computing total in years, months, and days

问题

如何计算给定快照的年月日总数。

英文:

How do I calculate the total of Year Month and Days as given snapshot.

MS Excel公式用于计算年、月和日的总数

答案1

得分: 2

以下是翻译好的部分:

For days =MOD(SUM(D2:D7),30) <br>
For months =MOD(SUM(C2:C7)+INT(SUM(D2:D7)/30),12) <br>
For years =SUM(B2:B7)+INT((INT(SUM(D2:D7)/30)+SUM(C2:C7))/12)

英文:

As per comment try following formulas.

For days =MOD(SUM(D2:D7),30) <br>
For months =MOD(SUM(C2:C7)+INT(SUM(D2:D7)/30),12) <br>
For years =SUM(B2:B7)+INT((INT(SUM(D2:D7)/30)+SUM(C2:C7))/12)

MS Excel公式用于计算年、月和日的总数

huangapple
  • 本文由 发表于 2023年3月9日 13:37:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/75680782.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定