Home |
Search |
Today's Posts |
#5
![]() |
|||
|
|||
![]()
That's it - thank you very much.
I was thinking I was counting with hours, so I used 24 as hours. I should have used 24:00, to let excel know that I meant hours - it did not occur to me that I was working with days. "Dave Peterson" wrote: Ah, an hour is 1/24 of a day. Since you added 24 to your formula, it added 23 extra days. if(from <= until;until-from;1-from+until) should work ok. Bruno Lauwers wrote: No dates, if I chance the hours, so there are no overnight calculations (with the false-statement), then everything is correct. In Belgium we use u instead of h for the hour("uur" in belgian). "Dave Peterson" wrote: It appears to be off by 23 days. Any chance you have a date in one of those cells (maybe both), instead of just times. (Select each cell and look at the formula bar.) ps. In the USA version of excel, we use: [h]:mm Bruno Lauwers wrote: I made a spreadsheet calculating how long a user is on line(VPN) From until = total time Because this can go overnight, I make the sum with an IF-statement. if(from <= until;until-from;24-from+until) This works completely correct. Then I make a sum of all these times, and here it goes wrong. If there is a sum calculated with the false-statement, then the sum of the total hours goes completely wrong. As long as every time is calculated with the true-statement, the total result is correct. This even goes wrong by making a sum of one cell. example from until total 22:58 8:42 9:44 total 561:44 this is the result I get when making a sum of the column total, format as [u]:mm Does anyone have a solution for this? -- Dave Peterson -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding minutes showing total in hours/minutes, i.e., 60 mins + 60 mins + 15 mins to total of 2 hours 15 mins? | Excel Discussion (Misc queries) | |||
Sum minutes and seconds to total hours | Excel Discussion (Misc queries) | |||
Calculating Overtime from Hours total | Excel Worksheet Functions | |||
Problems calculating total hours | Excel Discussion (Misc queries) | |||
Subtracting paid hours from unpaid hours | Excel Worksheet Functions |