william marinho
New Member
- Joined
- Aug 4, 2023
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Good morning, I must make a time schedule that tells me how many hours in the night shift i have worked, night shift is between 22:00 and 05:00 in the morning of the next day.
I am using this formula =IF(H17>=V$15;MOD(W$15-H17;1);IF(H17<=W$15;MOD(W$15-H17;1);(IF(K17>=V$15;MOD(K17-V$15;1);IF(K17<=V$15;MOD(K17-V$15;1);0))))) but if I work in a time different of 22:00 to 05:00 lets say 13:00 to 19:00 the cell shows me 21:00 when it should show 00:00. How can I fix it?
I am using this formula =IF(H17>=V$15;MOD(W$15-H17;1);IF(H17<=W$15;MOD(W$15-H17;1);(IF(K17>=V$15;MOD(K17-V$15;1);IF(K17<=V$15;MOD(K17-V$15;1);0))))) but if I work in a time different of 22:00 to 05:00 lets say 13:00 to 19:00 the cell shows me 21:00 when it should show 00:00. How can I fix it?