Have 4 column worksheet in Excel 2007 with over 14,000 records that contain the Date spans for customers as displayed below.
AcctNo.---BeginDt----EndDt-----CustDuration1---CustDuration2
12345-----8/1/02-----8/31/03---1.0822----------
12345-----9/1/03-----5/31/04---0.7479----------
12345-----6/1/04-----7/31/04---0.1644----------
12345-----9/1/07-----12/31/11--2.4630----------
Currently calculating the duration (in terms of years) that the customer has been with us in the fourth column titled "CustDuration1" by using a IF statement like
"=IF(C3>DATE(2010,2,17),($G$1-F3)/365,(G3-F3)/365)". Note, cell $G$1 contains today's date.
The column titled "CustDuration2" should contain the length of time (in terms of years) that the customer was with us from 10/08 through 09/09. Of course, if the customer was with us for the full 12 months, this column should display "1".
The other column desired is "CustomerBreakInService" that should display the length of time (in terms of years) that the customer was not our customer from the time of the earliest "BeginDt" through the latest "EndDt."
Any insight as to how all of this can be accomplished in Excel? Also, is there a process to calculate the column titled "CustDuration1" instead of using IF statements?
Comtemplating the use of vba along with arrays but need additional insight.
AcctNo.---BeginDt----EndDt-----CustDuration1---CustDuration2
12345-----8/1/02-----8/31/03---1.0822----------
12345-----9/1/03-----5/31/04---0.7479----------
12345-----6/1/04-----7/31/04---0.1644----------
12345-----9/1/07-----12/31/11--2.4630----------
Currently calculating the duration (in terms of years) that the customer has been with us in the fourth column titled "CustDuration1" by using a IF statement like
"=IF(C3>DATE(2010,2,17),($G$1-F3)/365,(G3-F3)/365)". Note, cell $G$1 contains today's date.
The column titled "CustDuration2" should contain the length of time (in terms of years) that the customer was with us from 10/08 through 09/09. Of course, if the customer was with us for the full 12 months, this column should display "1".
The other column desired is "CustomerBreakInService" that should display the length of time (in terms of years) that the customer was not our customer from the time of the earliest "BeginDt" through the latest "EndDt."
Any insight as to how all of this can be accomplished in Excel? Also, is there a process to calculate the column titled "CustDuration1" instead of using IF statements?
Comtemplating the use of vba along with arrays but need additional insight.