• 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.

How do i group dates automatically

Ashish Balki

New Member
I have to cluster 5 dates into one group. I have year-long dates which mean I should have (365/5=)73 groups starting from 1st March. How do I do it in excel? Attached is the excel file for 1 quarter.
 

Attachments

  • Group_dates_Ashish.xlsx
    189.2 KB · Views: 6
Assuming each group is 5 days long starting on 1 April 2018
In cell B2: =INT((A2-DATE(2018,4,1))/5)
copy down
 
Ashish Balki
You wrote ... groups starting from 1st March. -- okay
But next ...
You've also written 1st April is group 1...
What to do with days before 1st April in Your data?
> Which rule do You try use?
 

Attachments

  • Group_dates_Ashish.xlsx
    195.1 KB · Views: 0
Back
Top