Display the count on each day of the month based on start and stop date and match criteria

dgroff

New Member
Joined
Dec 9, 2014
Messages
4
I have a list of people that have individual start dates and end dates as well as an "X" criteria.

I want to be able to show the number of people for each day of the month that match the criteria "MA" and falls between their start and stop dates.

1/11/21/31/41/51/61/71/81/91/101/111/121/131/141/151/161/171/181/191/201/211/221/231/241/251/261/271/281/291/301/31PersonStartEndX
0000000000000000000000000000000Person 11/10/20211/20/2021MA
Person 21/10/20211/20/2021MA
Person 31/12/20211/22/2021MA
Person 41/12/20211/22/2021MA
Person 51/12/20211/22/2021MA
Person 61/13/20211/23/2021MA
Person 71/13/20211/23/2021MA
Person 81/13/20211/23/2021AA
Person 91/13/20211/23/2021MA
Person 101/13/20211/23/2021MA
Person 111/13/20211/23/2021AA
Person 121/13/20211/23/2021MA
Person 131/13/20211/23/2021MA
Person 141/13/20211/23/2021MA
Person 151/13/20211/23/2021AA
Person 161/13/20211/23/2021MA
Person 171/13/20211/23/2021MA
Person 181/13/20211/23/2021AA
Person 191/13/20211/23/2021AA
Person 201/13/20211/23/2021MA
Person 211/13/20211/23/2021MA
Person 221/13/20211/23/2021MA
Person 231/13/20211/23/2021AA
Person 241/13/20211/23/2021MA
Person 251/13/20211/23/2021MA
Person 261/13/20211/23/2021MA
Person 271/13/20211/23/2021MA
Person 281/13/20211/23/2021MA
Person 291/13/20211/23/2021AA
Person 301/13/20211/23/2021MA
Person 311/13/20211/23/2021MA
Person 321/13/20211/23/2021MA
Person 331/13/20211/23/2021MA
Person 341/13/20211/23/2021MA
Person 351/13/20211/23/2021MA
Person 361/13/20211/23/2021MA
Person 371/14/20201/24/2020MA
Person 381/14/20201/24/2020MA
Person 391/16/20201/26/2020MA
Person 401/16/20201/26/2020MA
Person 411/16/20201/26/2020MA
Person 421/16/20201/26/2020MA
Person 431/16/20201/26/2020MA
Person 441/16/20201/26/2020MA
Person 451/16/20201/26/2020MA
Person 461/16/20201/26/2020MA
Person 471/16/20201/26/2020AA
Person 481/16/20201/26/2020MA
Person 491/16/20201/26/2020AA
Person 501/16/20201/26/2020AA
Person 511/16/20201/26/2020MA
Person 521/16/20201/26/2020MA
Person 531/16/20201/26/2020AA
Person 541/16/20201/26/2020MA
Person 551/16/20201/26/2020MA
Person 561/16/20201/26/2020AA
Person 571/16/20201/26/2020MA
Person 581/16/20201/26/2020MA
Person 591/16/20201/26/2020MA
Person 601/16/20201/26/2020MA
Person 611/16/20201/26/2020MA
Person 621/16/20201/26/2020MA
Person 631/16/20201/26/2020MA
Person 641/16/20201/26/2020MA
Person 651/16/20201/26/2020MA
Person 661/16/20201/26/2020MA
Person 671/17/20211/27/2021MA
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How about
+Fluff v2.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
101-Jan02-Jan03-Jan04-Jan05-Jan06-Jan07-Jan08-Jan09-Jan10-Jan11-Jan12-Jan13-Jan14-Jan15-Jan16-Jan17-Jan18-Jan19-Jan20-Jan21-Jan22-Jan23-Jan24-Jan25-Jan26-Jan27-Jan28-Jan29-Jan30-Jan31-JanPersonStartEndX
2000000000225292929293030303028282511110000Person 110/01/202120/01/2021MA
3Person 210/01/202120/01/2021MA
4Person 312/01/202122/01/2021MA
5Person 412/01/202122/01/2021MA
6Person 512/01/202122/01/2021MA
7Person 613/01/202123/01/2021MA
8Person 713/01/202123/01/2021MA
9Person 813/01/202123/01/2021AA
10Person 913/01/202123/01/2021MA
11Person 1013/01/202123/01/2021MA
12Person 1113/01/202123/01/2021AA
13Person 1213/01/202123/01/2021MA
14Person 1313/01/202123/01/2021MA
15Person 1413/01/202123/01/2021MA
16Person 1513/01/202123/01/2021AA
17Person 1613/01/202123/01/2021MA
18Person 1713/01/202123/01/2021MA
19Person 1813/01/202123/01/2021AA
20Person 1913/01/202123/01/2021AA
21Person 2013/01/202123/01/2021MA
22Person 2113/01/202123/01/2021MA
23Person 2213/01/202123/01/2021MA
24Person 2313/01/202123/01/2021AA
25Person 2413/01/202123/01/2021MA
26Person 2513/01/202123/01/2021MA
27Person 2613/01/202123/01/2021MA
28Person 2713/01/202123/01/2021MA
29Person 2813/01/202123/01/2021MA
30Person 2913/01/202123/01/2021AA
31Person 3013/01/202123/01/2021MA
32Person 3113/01/202123/01/2021MA
33Person 3213/01/202123/01/2021MA
34Person 3313/01/202123/01/2021MA
35Person 3413/01/202123/01/2021MA
36Person 3513/01/202123/01/2021MA
37Person 3613/01/202123/01/2021MA
38Person 3714/01/202024/01/2020MA
39Person 3814/01/202024/01/2020MA
40Person 3916/01/202026/01/2020MA
41Person 4016/01/202026/01/2020MA
42Person 4116/01/202026/01/2020MA
43Person 4216/01/202026/01/2020MA
44Person 4316/01/202026/01/2020MA
45Person 4416/01/202026/01/2020MA
46Person 4516/01/202026/01/2020MA
47Person 4616/01/202026/01/2020MA
48Person 4716/01/202026/01/2020AA
49Person 4816/01/202026/01/2020MA
50Person 4916/01/202026/01/2020AA
51Person 5016/01/202026/01/2020AA
52Person 5116/01/202026/01/2020MA
53Person 5216/01/202026/01/2020MA
54Person 5316/01/202026/01/2020AA
55Person 5416/01/202026/01/2020MA
56Person 5516/01/202026/01/2020MA
57Person 5616/01/202026/01/2020AA
58Person 5716/01/202026/01/2020MA
59Person 5816/01/202026/01/2020MA
60Person 5916/01/202026/01/2020MA
61Person 6016/01/202026/01/2020MA
62Person 6116/01/202026/01/2020MA
63Person 6216/01/202026/01/2020MA
64Person 6316/01/202026/01/2020MA
65Person 6416/01/202026/01/2020MA
66Person 6516/01/202026/01/2020MA
67Person 6616/01/202026/01/2020MA
68Person 6717/01/202127/01/2021MA
Ref
Cell Formulas
RangeFormula
A2:AE2A2=COUNTIFS($AJ:$AJ,"MA",$AH:$AH,"<="&A1,$AI:$AI,">="&A1)
 
Upvote 0
Solution
try countifs:
>=day on column start date
<=day on column end date
MA on column X

----
too late :)
 
Upvote 0
How about
+Fluff v2.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
101-Jan02-Jan03-Jan04-Jan05-Jan06-Jan07-Jan08-Jan09-Jan10-Jan11-Jan12-Jan13-Jan14-Jan15-Jan16-Jan17-Jan18-Jan19-Jan20-Jan21-Jan22-Jan23-Jan24-Jan25-Jan26-Jan27-Jan28-Jan29-Jan30-Jan31-JanPersonStartEndX
2000000000225292929293030303028282511110000Person 110/01/202120/01/2021MA
3Person 210/01/202120/01/2021MA
4Person 312/01/202122/01/2021MA
5Person 412/01/202122/01/2021MA
6Person 512/01/202122/01/2021MA
7Person 613/01/202123/01/2021MA
8Person 713/01/202123/01/2021MA
9Person 813/01/202123/01/2021AA
10Person 913/01/202123/01/2021MA
11Person 1013/01/202123/01/2021MA
12Person 1113/01/202123/01/2021AA
13Person 1213/01/202123/01/2021MA
14Person 1313/01/202123/01/2021MA
15Person 1413/01/202123/01/2021MA
16Person 1513/01/202123/01/2021AA
17Person 1613/01/202123/01/2021MA
18Person 1713/01/202123/01/2021MA
19Person 1813/01/202123/01/2021AA
20Person 1913/01/202123/01/2021AA
21Person 2013/01/202123/01/2021MA
22Person 2113/01/202123/01/2021MA
23Person 2213/01/202123/01/2021MA
24Person 2313/01/202123/01/2021AA
25Person 2413/01/202123/01/2021MA
26Person 2513/01/202123/01/2021MA
27Person 2613/01/202123/01/2021MA
28Person 2713/01/202123/01/2021MA
29Person 2813/01/202123/01/2021MA
30Person 2913/01/202123/01/2021AA
31Person 3013/01/202123/01/2021MA
32Person 3113/01/202123/01/2021MA
33Person 3213/01/202123/01/2021MA
34Person 3313/01/202123/01/2021MA
35Person 3413/01/202123/01/2021MA
36Person 3513/01/202123/01/2021MA
37Person 3613/01/202123/01/2021MA
38Person 3714/01/202024/01/2020MA
39Person 3814/01/202024/01/2020MA
40Person 3916/01/202026/01/2020MA
41Person 4016/01/202026/01/2020MA
42Person 4116/01/202026/01/2020MA
43Person 4216/01/202026/01/2020MA
44Person 4316/01/202026/01/2020MA
45Person 4416/01/202026/01/2020MA
46Person 4516/01/202026/01/2020MA
47Person 4616/01/202026/01/2020MA
48Person 4716/01/202026/01/2020AA
49Person 4816/01/202026/01/2020MA
50Person 4916/01/202026/01/2020AA
51Person 5016/01/202026/01/2020AA
52Person 5116/01/202026/01/2020MA
53Person 5216/01/202026/01/2020MA
54Person 5316/01/202026/01/2020AA
55Person 5416/01/202026/01/2020MA
56Person 5516/01/202026/01/2020MA
57Person 5616/01/202026/01/2020AA
58Person 5716/01/202026/01/2020MA
59Person 5816/01/202026/01/2020MA
60Person 5916/01/202026/01/2020MA
61Person 6016/01/202026/01/2020MA
62Person 6116/01/202026/01/2020MA
63Person 6216/01/202026/01/2020MA
64Person 6316/01/202026/01/2020MA
65Person 6416/01/202026/01/2020MA
66Person 6516/01/202026/01/2020MA
67Person 6616/01/202026/01/2020MA
68Person 6717/01/202127/01/2021MA
Ref
Cell Formulas
RangeFormula
A2:AE2A2=COUNTIFS($AJ:$AJ,"MA",$AH:$AH,"<="&A1,$AI:$AI,">="&A1)
This is Perfect! Thank you!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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