Forum Discussion
Grouping by dates in Excel?
ExcelExciting Sorry, I don't think I was very clear in my question.
I have a list of employees with their work dates in a given year. I want to insert a formula that indicates which period they fall in but it has to be a date from 15th to 14th of following month. So if the date is 01/05/2020 it should fall in the period 12/15/2019-01/14/2020. What formula would do this?
Employee Work Date PERIOD
John 01/05/2020 12/15/2019-01/14/2020
John 01/15/2020 01/15/2020-02/14/2020
John 02/05/2020 01/15/2020-02/14/2020
John 03/06/2020 02/15/2020-03/14/2020
MMH11 Alternatively, use one of the solutions in the attached workbook. The first one determines both the start and the end of the period, based on the start day (15 in your case). It uses the fairly neat EOMONTH function. The second option combines start and end of the period into one text string.
Cell B1 contains the start day of your period and I gave it the name "from".