Page 1 of 1

time difference

Posted: Wed Oct 13, 2021 7:14 pm
by sna
Hi dear,
I need your input how to calculate time difference between two time in a cell without use left and right function.

I also attached a template


Thanks

Re: time difference

Posted: Wed Oct 13, 2021 7:25 pm
by snasui
sna wrote: Wed Oct 13, 2021 7:14 pm without use left and right function
:D What the problem of these functions?

Re: time difference

Posted: Wed Oct 13, 2021 8:31 pm
by sna
These functions working but my boss didn't need it

Re: time difference

Posted: Wed Oct 13, 2021 9:58 pm
by snasui
:D I want your boss ask me by himself.

Re: time difference

Posted: Wed Oct 13, 2021 10:56 pm
by norkaz
...

Hi Guy,

What's the reason that your boss doesn't need to use left and right functions?

Looks like it could have several functions/formulas to solve the problem like that.

Honestly, in that case, the functions still work then please let your boss uses simple functions such as left and right properly instead of finding out the difficult methods.

Norkaz

Re: time difference

Posted: Thu Oct 14, 2021 7:18 am
by sna
thank you I try to explain him because I don't pretty much like complex formula

Re: time difference

Posted: Thu Oct 14, 2021 7:29 am
by norkaz
...

Another way, try this.

B2

=MID(A2,SEARCH("-",A2)+1,99)-MID(A2,1,SEARCH("-",A2)-1)

Norkaz