ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Time difference (https://www.excelbanter.com/excel-discussion-misc-queries/193321-time-difference.html)

aliya.pawaskar[_2_]

Time difference
 
Hi,

I am doing a time and motion study and we have 2 columns Start Time and End
Time. the third column is the Time difference for the Start Time and End Time.
My problem arise when the day changes, i.e. We work night shifts and if we
start something before 12:00 AM and ends after 12:00 AM, the difference
column does not give me result.
Can somebody please help?

Thanks,
Aliya

Kevin B

Time difference
 
Select the cells that have the formula calculating the time difference and
click FORMAT, CELLS in the menu. Click the NUMBER tab and in the CATEGORY
column scroll down until CUSTOM shows up in the list. Select the CUSTOM
format and in the TYPE list box scroll down until you find the following time
format:

[h]:mm:ss


--
Kevin Backmann


"aliya.pawaskar" wrote:

Hi,

I am doing a time and motion study and we have 2 columns Start Time and End
Time. the third column is the Time difference for the Start Time and End Time.
My problem arise when the day changes, i.e. We work night shifts and if we
start something before 12:00 AM and ends after 12:00 AM, the difference
column does not give me result.
Can somebody please help?

Thanks,
Aliya


Sandy Mann

Time difference
 
Try using:

=MOD(B1-A1,1)

With the end time in B1 and the start time in A1.

This works for any time of day.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"aliya.pawaskar" wrote in message
...
Hi,

I am doing a time and motion study and we have 2 columns Start Time and
End
Time. the third column is the Time difference for the Start Time and End
Time.
My problem arise when the day changes, i.e. We work night shifts and if we
start something before 12:00 AM and ends after 12:00 AM, the difference
column does not give me result.
Can somebody please help?

Thanks,
Aliya






All times are GMT +1. The time now is 10:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com