#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default TIME CALCULATIONS

Sirs,

Is it possible to calculate the time difference which im importing from
different software. the data getting imported by following format. I want
to calculate how much time he have taken lunch and break. if he have taken
more than 1.30 lunch means how much time extra he have taken and break more
than 15 minutes means how much time he have taken. is there is any formula
for that

A B C D E
9195 GOPALA KRISHNA .K
ATTENDENCE 13-Oct-08 10:11:16 IN
ATTENDENCE 13-Oct-08 10:11:18 IN
ATTENDENCE 13-Oct-08 10:11:21 IN
ATTENDENCE 13-Oct-08 12:37:18 OUT
ATTENDENCE 13-Oct-08 14:10:13 IN
ATTENDENCE 13-Oct-08 19:02:25 OUT
ATTENDENCE 13-Oct-08 19:27:05 IN
ATTENDENCE 13-Oct-08 21:41:42 OUT
9197 VENKATA RAO .V
ATTENDENCE 13-Oct-08 9:58:09 IN
ATTENDENCE 13-Oct-08 10:31:38 OUT
ATTENDENCE 13-Oct-08 11:49:46 IN
ATTENDENCE 13-Oct-08 11:49:48 IN
ATTENDENCE 13-Oct-08 12:37:42 OUT
ATTENDENCE 13-Oct-08 12:37:44 OUT
ATTENDENCE 13-Oct-08 13:49:57 IN
ATTENDENCE 13-Oct-08 13:50:00 IN
ATTENDENCE 13-Oct-08 13:50:02 IN
ATTENDENCE 13-Oct-08 13:50:05 IN
ATTENDENCE 13-Oct-08 19:05:22 OUT
ATTENDENCE 13-Oct-08 19:05:24 OUT
ATTENDENCE 13-Oct-08 19:24:57 IN
ATTENDENCE 13-Oct-08 19:24:59 IN
ATTENDENCE 13-Oct-08 21:57:14 OUT

--
srinivas
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default TIME CALCULATIONS

Assuming that the times are real XL times and not text, then:

=IF(AND(E4="Out",E5="In"),D5-D4,"")

and copied down will give the duration of any Out immediately followed by an
IN.

How would XL know that it was a long break and not a short lunch?

--
HTH

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


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


"Srinivas" wrote in message
...
Sirs,

Is it possible to calculate the time difference which im importing from
different software. the data getting imported by following format. I
want
to calculate how much time he have taken lunch and break. if he have
taken
more than 1.30 lunch means how much time extra he have taken and break
more
than 15 minutes means how much time he have taken. is there is any formula
for that

A B C D E
9195 GOPALA KRISHNA .K
ATTENDENCE 13-Oct-08 10:11:16 IN
ATTENDENCE 13-Oct-08 10:11:18 IN
ATTENDENCE 13-Oct-08 10:11:21 IN
ATTENDENCE 13-Oct-08 12:37:18 OUT
ATTENDENCE 13-Oct-08 14:10:13 IN
ATTENDENCE 13-Oct-08 19:02:25 OUT
ATTENDENCE 13-Oct-08 19:27:05 IN
ATTENDENCE 13-Oct-08 21:41:42 OUT
9197 VENKATA RAO .V
ATTENDENCE 13-Oct-08 9:58:09 IN
ATTENDENCE 13-Oct-08 10:31:38 OUT
ATTENDENCE 13-Oct-08 11:49:46 IN
ATTENDENCE 13-Oct-08 11:49:48 IN
ATTENDENCE 13-Oct-08 12:37:42 OUT
ATTENDENCE 13-Oct-08 12:37:44 OUT
ATTENDENCE 13-Oct-08 13:49:57 IN
ATTENDENCE 13-Oct-08 13:50:00 IN
ATTENDENCE 13-Oct-08 13:50:02 IN
ATTENDENCE 13-Oct-08 13:50:05 IN
ATTENDENCE 13-Oct-08 19:05:22 OUT
ATTENDENCE 13-Oct-08 19:05:24 OUT
ATTENDENCE 13-Oct-08 19:24:57 IN
ATTENDENCE 13-Oct-08 19:24:59 IN
ATTENDENCE 13-Oct-08 21:57:14 OUT

--
srinivas



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default TIME CALCULATIONS

Your data is bad, the "IN"s and "OUT"s don't match

Srinivas wrote:

Sirs,

Is it possible to calculate the time difference which im importing from
different software. the data getting imported by following format. I want
to calculate how much time he have taken lunch and break. if he have taken
more than 1.30 lunch means how much time extra he have taken and break more
than 15 minutes means how much time he have taken. is there is any formula
for that

A B C D E
9195 GOPALA KRISHNA .K
ATTENDENCE 13-Oct-08 10:11:16 IN
ATTENDENCE 13-Oct-08 10:11:18 IN
ATTENDENCE 13-Oct-08 10:11:21 IN
ATTENDENCE 13-Oct-08 12:37:18 OUT
ATTENDENCE 13-Oct-08 14:10:13 IN
ATTENDENCE 13-Oct-08 19:02:25 OUT
ATTENDENCE 13-Oct-08 19:27:05 IN
ATTENDENCE 13-Oct-08 21:41:42 OUT
9197 VENKATA RAO .V
ATTENDENCE 13-Oct-08 9:58:09 IN
ATTENDENCE 13-Oct-08 10:31:38 OUT
ATTENDENCE 13-Oct-08 11:49:46 IN
ATTENDENCE 13-Oct-08 11:49:48 IN
ATTENDENCE 13-Oct-08 12:37:42 OUT
ATTENDENCE 13-Oct-08 12:37:44 OUT
ATTENDENCE 13-Oct-08 13:49:57 IN
ATTENDENCE 13-Oct-08 13:50:00 IN
ATTENDENCE 13-Oct-08 13:50:02 IN
ATTENDENCE 13-Oct-08 13:50:05 IN
ATTENDENCE 13-Oct-08 19:05:22 OUT
ATTENDENCE 13-Oct-08 19:05:24 OUT
ATTENDENCE 13-Oct-08 19:24:57 IN
ATTENDENCE 13-Oct-08 19:24:59 IN
ATTENDENCE 13-Oct-08 21:57:14 OUT


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Calculations LFP Excel Discussion (Misc queries) 1 February 7th 08 04:07 PM
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM
Overlapping time calculations and automatic time updates Arlette Excel Worksheet Functions 1 December 9th 06 12:20 AM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM
time calculations craigj Excel Discussion (Misc queries) 2 September 25th 05 06:22 PM


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"