A
Al
Hi Guys,
I have a spreadsheet here that has start / end hours in one column ie
A B
1 17:00 2
2 19:00
3
4
In column B is the total number of hours between A1 and A2, ie A2 -
A1. This works fine with the forumla:
=(A2-INT(A2))*24-(A1-INT(A1))*24
But when the times cross midnight (and they will only ever cross
midnight up to 3am) then it doesnt work and you end up with -19 etc.
Whats the simple fix please?
Thanks
-Al
I have a spreadsheet here that has start / end hours in one column ie
A B
1 17:00 2
2 19:00
3
4
In column B is the total number of hours between A1 and A2, ie A2 -
A1. This works fine with the forumla:
=(A2-INT(A2))*24-(A1-INT(A1))*24
But when the times cross midnight (and they will only ever cross
midnight up to 3am) then it doesnt work and you end up with -19 etc.
Whats the simple fix please?
Thanks
-Al