Finding Days off?

eblake

Active Member
Joined
Aug 18, 2004
Messages
258
I have a list of agents, this list is their stats for each day, What I need to do if figure out how many days the agents have actually worked, Ive been messing around with
=SUM(IF((ISNUMBER(D1:D1000))&(C1:C1000=B2),D1:D1000))
=SUMPRODUCT(--(Data!C:C=6822),--(Data!D:D=12.81))
=COUNTIF(Data!C:C,"6822")
=SUM(IF(Data!C:C=B5,IF(Data!D:D="OFF",),))
=SUMPRODUCT((Data!C:C=B6)*(Data!D:D="OFF"))
=VLOOKUP(B7,Data!C:D,2,FALSE)

Cant seem to get the results im looking for. Below is an example 3 columns of data.
So agent extension:
5000 would result in 2 since I have time for both his days,
5001 would be 2
5002 would be 1 since I only have a tie for the second day
5004 would be 2
and so on.

Thanks in advance.
Template - Agent Stats v1.1.xls
ABCD
1DateExt.Time
209/01/04500012.81
309/01/04500117.50
409/01/045002OFF
509/01/04500418.47
609/01/04500512.37
709/01/04500617.73
809/01/0450079.30
909/01/045008OFF
1009/01/04500915.55
1109/01/04501013.55
1209/01/04501125.33
1309/01/04501213.51
1409/01/04501313.68
1509/01/045014OFF
1609/02/04500013.64
1709/02/04500116.15
1809/02/04500218.84
1909/02/04500419.44
2009/02/04500511.56
2109/02/04500619.50
2209/02/04500715.47
2309/02/045008OFF
2409/02/04500923.48
2509/02/04501015.26
2609/02/04501118.53
2709/02/045012OFF
2809/02/04501318.44
2909/02/04501413.28
Data (2)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try,

=SUMPRODUCT(--(B2:B29=5000),--ISNUMBER(C2:C29))

No whole column references, ranges must be of the same size
 
Upvote 0
Thanks Brian, that got it. I didn't realize you couldn't use whole columns. Learn something new each day. :)
 
Upvote 0

Forum statistics

Threads
1,215,581
Messages
6,125,656
Members
449,247
Latest member
wingedshoes

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