Tennisguuy
Well-known Member
- Joined
- Oct 17, 2007
- Messages
- 564
- Office Version
- 2016
- Platform
- Windows
I have a spreadsheet with various columns with losses and loss dates for each loss. The problem is the loss dates generally correspond to a policy year. However the spreadsheet doesn't include a policy year so I create a column for the policy year. The losses could range over a ten year period but most of the time its just about seven. Since the policy year can be different throughout the years or on different account I have to manually adjust my formula to show the policy year.
For example if the policy year is 5/20/2016 to 5/20/2017 my formula is general if(and(J2>42510,j2<42,875),2016). J2 is the loss date of the claim. I have the formula in Colum U2.
Here's an example of the formula I have in cell U2 to cover losses over the seven year period.
IF(AND(J2>39588,J2<39953),2008,IF(AND(J2>39953,J2<40318),2009,IF(AND(J2>40318,J2<40683),2010,IF(AND(J2>40683,J2<41049),2011,IF(AND(J2>41049,J2<41414),2012,IF(AND(J2>41414,J2<41779),2013,IF(AND(J2>41779,J2<42144),2014,IF(AND(J2>38857,J2<39222),2006,IF(AND(J2>39222,J2<39588),2007,IF(AND(J2>38492,J2<38857),2005,IF(AND(J2>42144,J2<42510),2015,IF(AND(J2>42510,J2<42875),2016,IF(AND(J2>42875,J2<43240),2017,IF(AND(J2>43240,J2<43605),2018))))))))))))))
I usually copy this formula down. Sometimes I can have 200 rows of data. I was wondering if there was an easier way to do this so that if the date change I could just change the dates by not have to manually adjust the formula each time.
For example if I list the effective date in a row of cells and have J2 feed of these date
Eff. Date Exp Date Pol. Yr
5/20/2013 5/20/2014 2013
5/20/2014 5/20/2015 2014
5/20/2015 5/20/2016 2015
5/20/2016 5/20/2017 2016
5/20/2017 5/20/2018 2017
For example if the policy year is 5/20/2016 to 5/20/2017 my formula is general if(and(J2>42510,j2<42,875),2016). J2 is the loss date of the claim. I have the formula in Colum U2.
Here's an example of the formula I have in cell U2 to cover losses over the seven year period.
IF(AND(J2>39588,J2<39953),2008,IF(AND(J2>39953,J2<40318),2009,IF(AND(J2>40318,J2<40683),2010,IF(AND(J2>40683,J2<41049),2011,IF(AND(J2>41049,J2<41414),2012,IF(AND(J2>41414,J2<41779),2013,IF(AND(J2>41779,J2<42144),2014,IF(AND(J2>38857,J2<39222),2006,IF(AND(J2>39222,J2<39588),2007,IF(AND(J2>38492,J2<38857),2005,IF(AND(J2>42144,J2<42510),2015,IF(AND(J2>42510,J2<42875),2016,IF(AND(J2>42875,J2<43240),2017,IF(AND(J2>43240,J2<43605),2018))))))))))))))
I usually copy this formula down. Sometimes I can have 200 rows of data. I was wondering if there was an easier way to do this so that if the date change I could just change the dates by not have to manually adjust the formula each time.
For example if I list the effective date in a row of cells and have J2 feed of these date
Eff. Date Exp Date Pol. Yr
5/20/2013 5/20/2014 2013
5/20/2014 5/20/2015 2014
5/20/2015 5/20/2016 2015
5/20/2016 5/20/2017 2016
5/20/2017 5/20/2018 2017