Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello
I simply can not understand that the following code does not work when "the time" is equal to or less than 24:00 = IF (E3 = 0; 0; IF (AND (E3 <F3; MEDIAN (E3; F3; 0) = E3); MOD (MIN (TIME (5, 0, 0); F3)-E3; 3); V (MIN (TIME (5, 0, 0); F3)-MAX (E3; TIME (22, 0, 0)); 1))) The formula must count the hours between 22:00 and 5:00 in a random time, for example. 16:00 to 2:00 = 4 hours. But if the term is before 24:00 counts it wrong. T.ex. 16:00 to 24:00 it counts 7 hours. It should be 2 hours. I hope some of you sharp minds to help me to solve this problem:) Best regards H. Nissen |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
The count on my pivot table is wrong - HELP!! | Excel Discussion (Misc queries) | |||
Run time error 1004 - what have I done wrong? | Excel Discussion (Misc queries) | |||
Count wrong | Excel Discussion (Misc queries) | |||
IF Statement help please - again - got it wrong last time! | Excel Worksheet Functions | |||
Converting Wrong Time Value to Correct One | Excel Discussion (Misc queries) |