help. formula for computing time difference

bracky

New Member
Joined
Jun 1, 2011
Messages
9
I am computing for time difference between 2 columns. Column A represent the "SCHEDULED TIME IN" and column B represent " REAL TIMED OUT" (time when an employee clocked out). Column C represent the result. I am using the formula =B1+(A1>B1)-A1. The formula is perfectly fine in some areas. However if B1 is lesser than A1 the results is not correct.

Example:

SCHEDULED TIME IN A1 2:00 pm
REAL TIMED OUT B1 1:08 pm
Result C1 23:08

The result should be 0:52:00. Please give me advised on what to do.

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I got the answer to my question. Since the result keeps on adding 24 hours, I put 24- in the formula.

Something like this =24-(E5+(D5>E5)-D5)

Thanks anyway to some of you who wants to help me. I hope this will help someone who have the same query.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,723
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top