P
PattiP
I have a database of substation outages that calculates the length of the
outage (i..e. TimeOff, TimeOn). Its been working fine for a few years, but
we just encountered a situation where a total outage time did not add
properly. The total is calculated in hhr:mm format as follows:
=Int(Sum([MinutesOff]/60)) & “.†& Format(Sum([MinutesOff]) Mod 60, “00â€)
It seems this works fine except in the very rare occasion when the total
minutes equals exactly 60, which evidentally has never happened before. Then
it doesn’t add that extra minute to the total. I’m thinking it must be in
the “Mod 60†part of the statement???
Here’s the example in hh:mm:
1:01
0:02
1:00
0:02
0:32
0:03
0:03
0:08
0:03
0:03
0:03
the total shows up as 2 instead of 3.
Any help would be appreciated. I’m guessing there might be an IF statement
involved????
outage (i..e. TimeOff, TimeOn). Its been working fine for a few years, but
we just encountered a situation where a total outage time did not add
properly. The total is calculated in hhr:mm format as follows:
=Int(Sum([MinutesOff]/60)) & “.†& Format(Sum([MinutesOff]) Mod 60, “00â€)
It seems this works fine except in the very rare occasion when the total
minutes equals exactly 60, which evidentally has never happened before. Then
it doesn’t add that extra minute to the total. I’m thinking it must be in
the “Mod 60†part of the statement???
Here’s the example in hh:mm:
1:01
0:02
1:00
0:02
0:32
0:03
0:03
0:08
0:03
0:03
0:03
the total shows up as 2 instead of 3.
Any help would be appreciated. I’m guessing there might be an IF statement
involved????