Count People within Date Ranges

gahooja

New Member
Joined
Mar 26, 2010
Messages
14
Hello, I have a set of data as described below

Team Resource Start Date End Date
PMO John Doe 2/1/10 7/24/10
Infra Jane Doe 3/1/10 4/23/10
ETC...

I need to be able to 1st match the team and see how many resources are active for each week for each team in a results table as shown below, i only used 2 teams and 2 resources for the example but i have a group of over 500 people so i was looking for a formula that might be able to 1st match the team and then count how many people are active within their date ranges shown above to the week end dates mentioned below.
Result
Team Wk Ending ..........Wk Ending........Wk Ending
2/6/10............3/6/10..............7/31/10
PMO 1...................1.....................0
Infra 0...................1.....................0

Thanks for the help
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Welcome to the Board!

The formulas in B3:D4 are if you have Excel 2007 and the formulas in B8:D9 can be used in pre-2007:
Excel Workbook
ABCDEFGHIJ
1TeamWk EndingWk EndingWk EndingTeamResourceStart DateEnd Date
22/6/20103/6/20107/31/2010PMOJohn Doe2/1/20107/24/2010
3PMO110InfraJane Doe3/1/20104/23/2010
4Infra010
5
6TeamWk EndingWk EndingWk Ending
72/6/20103/6/20107/31/2010
8PMO110
9Infra010
Sheet16
Cell Formulas
RangeFormula
B3=COUNTIFS($G$2:$G$3,$A3,$I$2:$I$3,"<="&B$2,$J$2:$J$3,">="&B$2)
B8=SUMPRODUCT(--($G$2:$G$3=$A3),--($I$2:$I$3<=B$2),--($J$2:$J$3>=B$2))

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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