Extracting time data

Dandada26

New Member
Joined
Aug 30, 2005
Messages
9
I’m doing a time control sheet. I have the following data sheet:
Book1
BCDEFGHIJ
1AgentIDLoginTimeLogoutTimeLogoutDateCorrelation ID+DateActualWorkedDayTotalWorkedHours
21758118:12:0018:18:0011/16/05175813867211/16/050.103:00:00
31758119:00:001:00:0011/16/05175813867111/15/056.00
4175819:59:0011:28:0011/17/05175813867311/17/051.48
51758113:15:0022:00:0011/17/05175813867311/17/058.75
61842313:05:0017:18:0011/16/05184233867211/16/054.22
71842317:59:000:00:0011/16/05184233867111/15/056.02
8
9
10
11AgentID17581
12
1311/16/200511/17/2005
14WednesdayThursday
15LogInOutInOut
16Actual18:12:0018:18:009:59:0022:00:00
Sheet1


From this data I want to extract data for a single agent by day of the week. I wanted an alternative to the array formula, which has the following limitations:
1- The array formula I used doesn’t work beyond the 1500 rows, my row extended around the 10.000.
2- Since some agents shift end on the next day. The formula can’t identify the last logout for the shift.
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

RalphA

Well-known Member
Joined
May 14, 2003
Messages
3,829
1. The formula in D2 should be, to show the date:
=IF(B2="","",B2&CHAR(1)&TEXT(G2,"mm/dd/yyyy"))

2. I don't see any "array" formula. Could you explain?

3. What do you have in J2?
 

Dandada26

New Member
Joined
Aug 30, 2005
Messages
9
The time in J2 is for excel to consider the shift that ends after midnight belong to the previous day. It makes a cut at 3:00 am
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825

ADVERTISEMENT

So are the results shown in C16, D16, F16 and G16 what you want?

If not, what should they be
 

Dandada26

New Member
Joined
Aug 30, 2005
Messages
9
The answer is the one I want but if the amount of data pass the 1500 the array formula stops working due to memory limitations I suppose. So I need a formula that will do the same beyond the 1500.
 

Dandada26

New Member
Joined
Aug 30, 2005
Messages
9
The 1500 I'm referring to are rows. Does this have a solution or I'm asking for too much?
 

Watch MrExcel Video

Forum statistics

Threads
1,118,811
Messages
5,574,454
Members
412,595
Latest member
slim313
Top