I need a formula to count
# of majors for past 5 years by school year.
For example if a major has a start date of 4/27/17 and the stop date is null I would need to count the major in the school year 8/1/2017 - 7/31/2018 and the school year 8/1/2017 - 7/31/2018.
Also if a major has a start date of 8/21/2103 and the stop date is 8/24/2015 I would need to count the major in the school year 8/1/2013 - 7/31/2018 and the school year 8/1/2013 - 7/31/2014, 8/1/2014 - 7/31/20158/1/2015 - 7/31/2016
# of majors for past 5 years by school year.
For example if a major has a start date of 4/27/17 and the stop date is null I would need to count the major in the school year 8/1/2017 - 7/31/2018 and the school year 8/1/2017 - 7/31/2018.
Also if a major has a start date of 8/21/2103 and the stop date is 8/24/2015 I would need to count the major in the school year 8/1/2013 - 7/31/2018 and the school year 8/1/2013 - 7/31/2014, 8/1/2014 - 7/31/20158/1/2015 - 7/31/2016