• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count dates from a Range

Hi friends,

I need some help while counting a range of dates
For eg:

I have months in column A and some range of dates in column F.
Now the count should be against month fetching the dates from column F.

Have attached sheet for your reference.
Appreciate your help.
upload_2017-2-19_12-14-39.png .
 

Attachments

  • Book2 (1).xlsx
    10.5 KB · Views: 2
Perhaps in B3 =SUMPRODUCT(--(MONTH($F$3:$F$82)=MONTH($A3)),--(YEAR($F$3:$F$82)=YEAR($A3)))
and pull down as needed
A Pivot Table would also work
 
Thank you Bosco for your timely help.

Small change what if my months are broken in to 15 days each and then the count of the range.

upload_2017-2-19_13-6-11.png
 

Attachments

  • Sample22.xlsx
    11.7 KB · Views: 9
As the value of an empty cell is 0 it would not be counted between the limits you described. To count empty cells the "Planned column" would have to be sorted, otherwise in which 15-day bucket is it to be counted?
 
Thanks PecoFlyer .....can I assume if the above is counting blank dates also as 1.

Hi Dinesh,

The post #5 formula only count for the range of :

1st ~ 14th of the month ( total 14 days)

15th ~ 30th/31st of the month ( total 16/17 days)

and

The last formula give 0 value result.

However,

Please noted that the formula appear does not satisfy your specified 15 days range (stated in post #4) and please clarify.

Regards
Bosco
 
Thanks all for all your support.
Alongside planned dates, we have few workgroups, where now the count should be categorized against each work group.

can this be achieved?

upload_2017-2-21_1-45-52.png
 

Attachments

  • Sent.xlsx
    11.7 KB · Views: 3
Back
Top