Biweekly Count of Dates

CuriousForge

New Member
Joined
Aug 20, 2018
Messages
24
Hello!

I have a wide range of dates spanning across many years for names A, B, C, D.

Solution Request:
  • To count the number of dates that fall bi-weekly within each month i.e 1 to 15, 16 to 31 for each month.
  • The Year should be plugged to cell B2 (screenshot 2) where changing the year should change the data in the biweekly/solution cells.

Data
Problem.jpg


Desired Solution
Desired Solution.jpg
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi!

Sorry for the Turkish layout. The logic is the same. Assuming your 3-letter month names in row 4 are just strings -not real dates.
The formula I used in B9 is:
Excel Formula:
=COUNTIFS(INDEX($A$1:$F$5,MATCH($A9,$A$1:$A$5,0),0),">="&DATE($B$6,MONTH(B$7&1),1),INDEX($A$1:$F$5,MATCH($A9,$A$1:$A$5,0),0),"<="&DATE($B$6,MONTH(B$7&1),15))
The formula I used in C9 is:
Excel Formula:
=COUNTIFS(INDEX($A$1:$F$5,MATCH($A9,$A$1:$A$5,0),0),">="&DATE($B$6,MONTH(B$7&1),16),INDEX($A$1:$F$5,MATCH($A9,$A$1:$A$5,0),0),"<="&EOMONTH(DATE($B$6,MONTH(B$7&1),1),0))
Then just drag the formulas to the left and down. I hope it helps!
1697552655099.png
 
Upvote 1
Solution
@Flashbond - apologies for the very late reply.

This has worked out brilliantly! Thank you so much for your help. I was skeptical of getting any response at all, but thank you for taking the time. :)
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

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