I have a long column of dates that I want to segment by year. For example, =IF(AND(C2>=8/1/2018,C2<=7/30/2019),"2018-2019",""). This will give me for one year, but how do I write the formula for say a 10 year span of dates so that 8/1/2017<>7/30/2018 will then give me 2017-2018, etc?