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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

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,123,393
Messages
5,601,403
Members
414,449
Latest member
Pashtun

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
Top