This sheet shows you how to create an end of quarter function and an end of half year function that can be useful in creating quarterly summaries from monthly data. The videos below explain how to roll-up data using the SUMIF or SUMIFS along with the end of quarter function.
.
Function eoqtr(date1) month_of_date = Month(date1) If month_of_date = 1 Or month_of_date = 4 Or month_of_date = 7 Or month_of_date = 10 _ Then eoqtr = WorksheetFunction.EoMonth(date1, 2) If month_of_date = 2 Or month_of_date = 5 Or month_of_date = 8 Or month_of_date = 11 _ Then eoqtr = WorksheetFunction.EoMonth(date1, 1) If month_of_date = 3 Or month_of_date = 6 Or month_of_date = 9 Or month_of_date = 12 _ Then eoqtr = WorksheetFunction.EoMonth(date1, 0) End Function .
Videos the Explain how and why to Use End of Quarter
The videos below describe how and why to use the end of quarter function.
.
.
.