I have a simple time sheet which has a summary sheet showing total time attended during a period and then the hours/minutes as separate fields. It has been used since Excel 95 - currently using Excel 2007.
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Forename
[/TD]
[TD="width: 99"] Surname
[/TD]
[TD="width: 64"] Total
[/TD]
[TD="width: 64"] Hours
[/TD]
[TD="width: 64"] Mins
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Fred
[/TD]
[TD="width: 99"] Colon
[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"]Nobby
[/TD]
[TD="width: 99"] Nobbs
[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Samuel
[/TD]
[TD="width: 99"] Vines
[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[/TR]
</tbody>[/TABLE]
The totals are calculated from a data entry sheet using a formula =SUMIFS(Data!F$2:F$145,Data!A$2:A$145,"="&Summary!A3,Data!B$2:B$145,"="&Summary!B3)
On the data sheet the row format is
<colgroup><col width="86"><col width="114"><col width="84"><col width="108" span="2"><col width="73"><col width="64" span="2"></colgroup><tbody>
[TD="class: xl66, width: 86"]Forename
[/TD]
[TD="class: xl66, width: 114"]Lastname[/TD]
[TD="class: xl67, width: 84"]Date[/TD]
[TD="class: xl66, width: 108"]start[/TD]
[TD="class: xl66, width: 108"]End[/TD]
[TD="class: xl66, width: 73"]Time[/TD]
[TD="class: xl66, width: 64"]Hrs[/TD]
[TD="class: xl66, width: 64"]Mins
[/TD]
</tbody>
where start and End are just time fields formatted as hh:mm, Time (The F column) is End-start (=E2-D2), and The Hours and minutes are just HOUR() and MINUTE() extractions
On the Summary sheet the total time can be in excess of 24 hours so the TOTAL field is formatted : [h]:mm.
The Summary Hours field is determined by a formula: =$C3-MOD($C3,1/24)
The Summary Mins field formula is:=MINUTE(C3)
This works fine on several PCs using the desktop versions of Excel up to, and including version 2010.
Recently a problem has come to light when some, but not all, entries where the total is a round number of hours show incorrect values for the Hours field. For example the "Nobby Nobbs" entry on Android version of Excel (1.0.1) shows as:
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Forename
[/TD]
[TD="width: 99"] Surname
[/TD]
[TD="width: 64"] Total
[/TD]
[TD="width: 64"] Hours
[/TD]
[TD="width: 64"] Mins
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Fred
[/TD]
[TD="width: 99"] Colon
[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"]Nobby
[/TD]
[TD="width: 99"] Nobbs
[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Samuel
[/TD]
[TD="width: 99"] Vines
[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[/TR]
</tbody>[/TABLE]
As can be seen the Hours column for Nobby Nobbs calculates incorrectly. In all reported cases the hour is one hour below the actual number of hours.
There was one case where one person attended 3 one hour sessions, which the total showed as 3:00 but the Hours showed as 2
Someone has also reported the same anomoly when using Excel 365, which I don't have.
Is there a difference between the MOD function on later Excel versions or is it something different?
Many thanks
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Forename
[/TD]
[TD="width: 99"] Surname
[/TD]
[TD="width: 64"] Total
[/TD]
[TD="width: 64"] Hours
[/TD]
[TD="width: 64"] Mins
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Fred
[/TD]
[TD="width: 99"] Colon
[/TD]
[TD="width: 64"]
30:00
[TD="width: 64"]
30
[TD="width: 64"]
0
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"]Nobby
[/TD]
[TD="width: 99"] Nobbs
[/TD]
[TD="width: 64"]
68:00
[TD="width: 64"]
68
[TD="width: 64"]
0
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Samuel
[/TD]
[TD="width: 99"] Vines
[/TD]
[TD="width: 64"]
41:45
[TD="width: 64"]
41
[TD="width: 64"]
45
[/TR]
</tbody>[/TABLE]
The totals are calculated from a data entry sheet using a formula =SUMIFS(Data!F$2:F$145,Data!A$2:A$145,"="&Summary!A3,Data!B$2:B$145,"="&Summary!B3)
On the data sheet the row format is
<colgroup><col width="86"><col width="114"><col width="84"><col width="108" span="2"><col width="73"><col width="64" span="2"></colgroup><tbody>
[TD="class: xl66, width: 86"]Forename
[/TD]
[TD="class: xl66, width: 114"]Lastname[/TD]
[TD="class: xl67, width: 84"]Date[/TD]
[TD="class: xl66, width: 108"]start[/TD]
[TD="class: xl66, width: 108"]End[/TD]
[TD="class: xl66, width: 73"]Time[/TD]
[TD="class: xl66, width: 64"]Hrs[/TD]
[TD="class: xl66, width: 64"]Mins
[/TD]
</tbody>
where start and End are just time fields formatted as hh:mm, Time (The F column) is End-start (=E2-D2), and The Hours and minutes are just HOUR() and MINUTE() extractions
On the Summary sheet the total time can be in excess of 24 hours so the TOTAL field is formatted : [h]:mm.
The Summary Hours field is determined by a formula: =$C3-MOD($C3,1/24)
The Summary Mins field formula is:=MINUTE(C3)
This works fine on several PCs using the desktop versions of Excel up to, and including version 2010.
Recently a problem has come to light when some, but not all, entries where the total is a round number of hours show incorrect values for the Hours field. For example the "Nobby Nobbs" entry on Android version of Excel (1.0.1) shows as:
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Forename
[/TD]
[TD="width: 99"] Surname
[/TD]
[TD="width: 64"] Total
[/TD]
[TD="width: 64"] Hours
[/TD]
[TD="width: 64"] Mins
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Fred
[/TD]
[TD="width: 99"] Colon
[/TD]
[TD="width: 64"]
30:00
[TD="width: 64"]
30
[TD="width: 64"]
0
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"]Nobby
[/TD]
[TD="width: 99"] Nobbs
[/TD]
[TD="width: 64"]
68:00
[TD="width: 64"]
67
[TD="width: 64"]
0
[/TR]
</tbody>[/TABLE]
[TABLE="class: MsoNormalTable"]
<tbody>[TR]
[TD="width: 64"] Samuel
[/TD]
[TD="width: 99"] Vines
[/TD]
[TD="width: 64"]
41:45
[TD="width: 64"]
41
[TD="width: 64"]
45
[/TR]
</tbody>[/TABLE]
As can be seen the Hours column for Nobby Nobbs calculates incorrectly. In all reported cases the hour is one hour below the actual number of hours.
There was one case where one person attended 3 one hour sessions, which the total showed as 3:00 but the Hours showed as 2
Someone has also reported the same anomoly when using Excel 365, which I don't have.
Is there a difference between the MOD function on later Excel versions or is it something different?
Many thanks