Count Number of Rep's

reyrey

New Member
Joined
Jun 30, 2011
Messages
49
I've got a list of people working throughout the day on Sheet1


ABC
1NameStart Day and TimeEnd Day and Time
2Jane Doe11/01/2017 07:0011/01/2017 12:00
3John Doe 11/01/2017 08:0011/01/2017 10:00

<tbody>
</tbody>




and would like to convert data into a timeline spreadsheet below on Sheet2. I just seem to get the code correct, I'm using the following formula in cell B1. But I not getting the end result, any idea what I'm missing?

=SUMPRODUCT(A1>=SHEET1!B:B)*(A2<=SHEET1!C:C)


AB
111/01/2017 07:001
211/01/2017 07:301
311/01/2017 08:002
411/01/2017 08:302
511/01/2017 09:002
611/01/2017 09:302
711/01/2017 10:001
811/01/2017 10:301
911/01/2017 11:001
1011/01/2017 11:301
1111/01/2017 12:000

<tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Your function SUMPRODUCT needs another set of parentheses, I think.
=SUMPRODUCT( (A1>=SHEET1!B:B)*(A2<=SHEET1!C:C) )
 
Upvote 0

Forum statistics

Threads
1,216,180
Messages
6,129,344
Members
449,506
Latest member
nomvula

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