To simplify 3 of
@bosco_yip 's formulae:
for hours, instead of:
=INT(MOD(Q3-(INT(Q3/30*30)),24)*24)
try:
=HOUR(Q3)
for minutes, instead of:
=INT((MOD(Q3-(INT(Q3/30*30)),24)*24-INT(MOD(Q3-(INT(Q3/30*30)),24)*24))*60)
try:
=MINUTE(Q3)
andfor seconds, instead of:
=((K3+O3)/60-INT((K3+O3)/60))*60
try:
=SECOND(Q3)
You
could do something similar with years, months, weeks and days but this would end up being based on month lengths as if dates started 1 Jan 1900 which is not what was asked for.
ps. as an aside, isn't
INT(Q3/30*30) in the above formulae the same as
INT(Q3) ?