How about a little different approach?
<table style="width: 467pt; border-collapse: collapse;" x:str="" border="0" cellpadding="0" cellspacing="0" width="624"><colgroup><col style="width: 19pt;" width="26"><col style="width: 48pt;" width="64"><col style="width: 49pt;" width="66"><col style="width: 36pt;" width="48"><col style="width: 44pt;" width="59"><col style="width: 46pt;" width="61"><col style="width: 67pt;" width="90"><col style="width: 45pt;" width="60"><col style="width: 76pt;" width="101"><col style="width: 37pt;" width="49"></colgroup><tr style="height: 12pt;" height="16"><td style="border: medium none rgb(212, 208, 200); width: 19pt; height: 12pt; background-color: rgb(144, 144, 144);" height="16" width="26">
</td><td style="border: medium none rgb(212, 208, 200); width: 48pt; background-color: rgb(144, 144, 144);" width="64">
</td><td style="border: medium none rgb(212, 208, 200); width: 49pt; background-color: rgb(144, 144, 144);" width="66">
</td><td style="border: medium none rgb(212, 208, 200); width: 36pt; background-color: rgb(144, 144, 144);" width="48">
</td><td style="border: medium none rgb(212, 208, 200); width: 44pt; background-color: rgb(144, 144, 144);" width="59">
</td><td style="border: medium none rgb(212, 208, 200); width: 46pt; background-color: rgb(144, 144, 144);" width="61">
</td><td style="border: medium none rgb(212, 208, 200); width: 67pt; background-color: rgb(144, 144, 144);" width="90">
</td><td style="border: medium none rgb(212, 208, 200); width: 45pt; background-color: rgb(144, 144, 144);" width="60">
</td><td class="xl27" style="border: 0.5pt solid windowtext; width: 76pt; background-color: rgb(243, 243, 243);" width="101">Check Date</td><td style="border: medium none rgb(212, 208, 200); width: 37pt; background-color: rgb(144, 144, 144);" width="49">
</td></tr><tr style="height: 12pt;" height="16"><td style="border: medium none rgb(212, 208, 200); height: 12pt; background-color: rgb(144, 144, 144);" height="16">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td><td class="xl28" style="border: medium none rgb(212, 208, 200); background-color: white;" x:num="40709" align="right">Wed 15 Jun 2011</td><td style="border: medium none rgb(212, 208, 200); background-color: rgb(144, 144, 144);">
</td></tr><tr style="height: 12pt;" height="16"><td class="xl27" style="border: 0.5pt solid windowtext; width: 19pt; height: 12pt; background-color: rgb(243, 243, 243);" height="16" width="26">Title
</td><td class="xl29" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 48pt; background-color: rgb(243, 243, 243);" width="64">First Name</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 49pt; background-color: rgb(243, 243, 243);" width="66">Last Name</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 36pt; background-color: rgb(243, 243, 243);" width="48">Company</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 44pt; background-color: rgb(243, 243, 243);" width="59">Total</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 46pt; background-color: rgb(243, 243, 243);" width="61">Instalment</td><td class="xl30" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 67pt; background-color: rgb(243, 243, 243);" width="90">Start</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 45pt; background-color: rgb(243, 243, 243);" width="60">Frequency</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 76pt; background-color: rgb(243, 243, 243);" width="101">Last Pmt Due</td><td class="xl27" style="border-right: 0.5pt solid windowtext; border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; width: 37pt; background-color: rgb(243, 243, 243);" width="49">
</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border: 0.5pt solid windowtext; background: none repeat scroll 0% 0% yellow; height: 12pt;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Jamie</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Smith</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Test1</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="7846.64" align="right">$ 7,846.64</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="" align="right">100</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="39932" align="right">Wed 29 Apr 2009</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Weekly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="40709" x:fmla="=IF(G4>I$2, "", CHOOSE(MATCH(H4, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G4 + 7 * INT((I$2 - G4)/7), G4 + 14 * INT((I$2 - G4)/14), EDATE(G4, DATEDIF(G4, I$2, "m")), EDATE(G4, 3 * INT(DATEDIF(G4, I$2, "m")/3)) ))" align="right">Wed 15 Jun 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I4<>"", I$2-I4 < 7)" x:bool="TRUE" align="middle">TRUE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border: 0.5pt solid windowtext; background: none repeat scroll 0% 0% yellow; height: 12pt;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Christopher</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Bloggs</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Test2</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="5830" align="right">$ 5,830.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="" align="right">50</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="39909" align="right">Mon 06 Apr 2009</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Weekly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="40707" x:fmla="=IF(G5>I$2, "", CHOOSE(MATCH(H5, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G5 + 7 * INT((I$2 - G5)/7), G5 + 14 * INT((I$2 - G5)/14), EDATE(G5, DATEDIF(G5, I$2, "m")), EDATE(G5, 3 * INT(DATEDIF(G5, I$2, "m")/3)) ))" align="right">Mon 13 Jun 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I5<>"", I$2-I5 < 7)" x:bool="TRUE" align="middle">TRUE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; height: 12pt; background-color: white;" height="16">Mrs</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Brie</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Masters</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Test3</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="28633.439999999999" align="right">$ 28,633.44</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="" align="right">500</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40429" align="right">Wed 08 Sep 2010</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Monthly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40702" x:fmla="=IF(G6>I$2, "", CHOOSE(MATCH(H6, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G6 + 7 * INT((I$2 - G6)/7), G6 + 14 * INT((I$2 - G6)/14), EDATE(G6, DATEDIF(G6, I$2, "m")), EDATE(G6, 3 * INT(DATEDIF(G6, I$2, "m")/3)) ))" align="right">Wed 08 Jun 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I6<>"", I$2-I6 < 7)" x:bool="FALSE" align="middle">FALSE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; height: 12pt; background-color: white;" height="16">Mrs</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Ben</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Buckingham</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Test4</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="800" align="right">$ 800.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="" align="right">200</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40624" align="right">Tue 22 Mar 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Monthly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40685" x:fmla="=IF(G7>I$2, "", CHOOSE(MATCH(H7, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G7 + 7 * INT((I$2 - G7)/7), G7 + 14 * INT((I$2 - G7)/14), EDATE(G7, DATEDIF(G7, I$2, "m")), EDATE(G7, 3 * INT(DATEDIF(G7, I$2, "m")/3)) ))" align="right">Sun 22 May 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I7<>"", I$2-I7 < 7)" x:bool="FALSE" align="middle">FALSE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; height: 12pt; background-color: white;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Damien</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Cot</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Test5</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="4400" align="right">$ 4,400.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="" align="right">440</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40624" align="right">Tue 22 Mar 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Monthly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40685" x:fmla="=IF(G8>I$2, "", CHOOSE(MATCH(H8, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G8 + 7 * INT((I$2 - G8)/7), G8 + 14 * INT((I$2 - G8)/14), EDATE(G8, DATEDIF(G8, I$2, "m")), EDATE(G8, 3 * INT(DATEDIF(G8, I$2, "m")/3)) ))" align="right">Sun 22 May 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I8<>"", I$2-I8 < 7)" x:bool="FALSE" align="middle">FALSE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border: 0.5pt solid windowtext; background: none repeat scroll 0% 0% yellow; height: 12pt;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Peter</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Pesh</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Test6</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="17811" align="right">$ 17,811.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="" align="right">100</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="40606" align="right">Fri 04 Mar 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Weekly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="40704" x:fmla="=IF(G9>I$2, "", CHOOSE(MATCH(H9, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G9 + 7 * INT((I$2 - G9)/7), G9 + 14 * INT((I$2 - G9)/14), EDATE(G9, DATEDIF(G9, I$2, "m")), EDATE(G9, 3 * INT(DATEDIF(G9, I$2, "m")/3)) ))" align="right">Fri 10 Jun 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I9<>"", I$2-I9 < 7)" x:bool="TRUE" align="middle">TRUE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; height: 12pt; background-color: white;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Neil</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Smith</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Test7</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="1803" align="right">$ 1,803.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="" align="right">910</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40731" align="right">Thu 07 Jul 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Quarterly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:str="" x:fmla="=IF(G10>I$2, "", CHOOSE(MATCH(H10, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G10 + 7 * INT((I$2 - G10)/7), G10 + 14 * INT((I$2 - G10)/14), EDATE(G10, DATEDIF(G10, I$2, "m")), EDATE(G10, 3 * INT(DATEDIF(G10, I$2, "m")/3)) ))">
</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I10<>"", I$2-I10 < 7)" x:bool="FALSE" align="middle">FALSE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; height: 12pt; background-color: white;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Grant</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Denyer</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Test8</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="3960" align="right">$ 3,960.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="" align="right">330</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40758" align="right">Wed 03 Aug 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Weekly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:str="" x:fmla="=IF(G11>I$2, "", CHOOSE(MATCH(H11, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G11 + 7 * INT((I$2 - G11)/7), G11 + 14 * INT((I$2 - G11)/14), EDATE(G11, DATEDIF(G11, I$2, "m")), EDATE(G11, 3 * INT(DATEDIF(G11, I$2, "m")/3)) ))">
</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I11<>"", I$2-I11 < 7)" x:bool="FALSE" align="middle">FALSE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; height: 12pt; background-color: white;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Steven</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Gerrard</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Test9</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="8400" align="right">$ 8,400.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="" align="right">700</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:num="40758" align="right">Wed 03 Aug 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;">Monthly</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:str="" x:fmla="=IF(G12>I$2, "", CHOOSE(MATCH(H12, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G12 + 7 * INT((I$2 - G12)/7), G12 + 14 * INT((I$2 - G12)/14), EDATE(G12, DATEDIF(G12, I$2, "m")), EDATE(G12, 3 * INT(DATEDIF(G12, I$2, "m")/3)) ))">
</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I12<>"", I$2-I12 < 7)" x:bool="FALSE" align="middle">FALSE</td></tr><tr style="height: 12pt;" height="16"><td class="xl31" style="border: 0.5pt solid windowtext; background: none repeat scroll 0% 0% yellow; height: 12pt;" height="16">Mr</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Guy</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Seb</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Test10</td><td class="xl32" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="4020" align="right">$ 4,020.00</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="" align="right">100</td><td class="xl33" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="40624" align="right">Tue 22 Mar 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;">Fortnightly
</td><td class="xl33" id="td_post_2644189" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background: none repeat scroll 0% 0% yellow;" x:num="40708" x:fmla="=IF(G13>I$2, "", CHOOSE(MATCH(H13, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0), G13 + 7 * INT((I$2 - G13)/7), G13 + 14 * INT((I$2 - G13)/14), EDATE(G13, DATEDIF(G13, I$2, "m")), EDATE(G13, 3 * INT(DATEDIF(G13, I$2, "m")/3)) ))" align="right">Tue 14 Jun 2011</td><td class="xl31" style="border-right: 0.5pt solid windowtext; border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: white;" x:fmla="=IF(I13<>"", I$2-I13 < 7)" x:bool="TRUE" align="middle">TRUE</td></tr></table>
The formula in I4 and down computes the due date of the last payment on or prior to the check date:
=IF(G4>I$2, "",
CHOOSE(MATCH(H4, {"Weekly","Fortnightly","Monthly","Quarterly"}, 0),
G4 + 7 * INT((I$2 - G4)/7),
G4 + 14 * INT((I$2 - G4)/14),
EDATE(G4, DATEDIF(G4, I$2, "m")),
EDATE(G4, 3 * INT(DATEDIF(G4, I$2, "m")/3))
))
The formula in the next column computes whether the row should be highlighted:
=IF(I4<>"", I$2-I4 < 7)