[TABLE="width: 500"]
<tbody>[TR]
[TD]Hi there,
Sorry for the delay. I've figured out a solution. The important formula is horribly inelegant, but it accomplishes exactly what you want without having to change anything really. I've added a third row to your sheet that features 3 scheduled payments in order to reflect that possibility. I've just copied and pasted the formulas directly into here, cell by cell. The formula in Column F can be pasted into F2 and then AutoFilled down however far you want. Same with the formula in G2, which is necessary for the Column F formula to work. Columns A through D should be formatted as text, and you must use the format ("mm/dd") in these columns, making sure that you use zeros where appropriate (i.e., 06/10, not 6/10).
Basically, it's first checking to see which of the four formulas to use based on the number of payments (Column G), then it checks to see when that payment was made according to Column E. Then it checks that date against the dates in Columns A through D. It uses DATE to pull the year from whichever appropriate cell in Column J, and the month and day are pulled as text from Columns A through D using LEFT and RIGHT. As I said, horribly inelegant, yet effective.
Cell F2: =IF($G2=1,IF($E2<DATE($J$1,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2>DATE($J$1,LEFT($A2,2),RIGHT($A2,2)),$E2<NOW()),DATE($J$4,LEFT($A2,2),RIGHT($A2,2)),"Invalid date")),IF($G2=2,IF($E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2>DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),$E2<DATE($J$2,LEFT($B2,2),RIGHT($B2,2))),DATE($J$3,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2>DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),$E2<NOW()),DATE($J$3,LEFT($B2,2),RIGHT($B2,2)),"Invalid date"))),IF($G2=3,IF($E2<DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2>DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),$E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2))),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2>DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),$E2<DATE($J$2,LEFT($B2,2),RIGHT($B2,2))),DATE($J$2,LEFT($C2,2),RIGHT($C2,2)),IF(AND($E2>DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),$E2<DATE($J$2,LEFT($C2,2),RIGHT($C2,2))),DATE($J$3,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2>DATE($J$2,LEFT($C2,2),RIGHT($C2,2)),$E2<NOW()),DATE($J$3,LEFT($B2,2),RIGHT($B2,2)),"Invalid date"))))),IF($G2=4,IF($E2<DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2>DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),$E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2))),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2>DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),$E2<DATE($J$2,LEFT($B2,2),RIGHT($B2,2))),DATE($J$2,LEFT($C2,2),RIGHT($C2,2)),IF(AND($E2>DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),$E2<DATE($J$2,LEFT($C2,2),RIGHT($C2,2))),DATE($J$2,LEFT($D2,2),RIGHT($D2,2)),IF(AND($E2>DATE($J$2,LEFT($C2,2),RIGHT($C2,2)),$E2<NOW()),DATE($J$3,LEFT($A2,2),RIGHT($A2,2)),"Invalid date"))))),"Invalid # of payments"))))
<date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2 style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;"><now()),date($j$4,left($a2,2),right($a2,2)),"invalid date")),if($g2="2,IF($E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2"><date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))),if($g2="3,IF($E2<DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))))),if($g2="4,IF($E2<DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2><now()),date($j$3,left($a2,2),right($a2,2)),"invalid date"))))),"invalid="" #="" of="" payments"))))<date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2=""><now()),date($j$4,left($a2,2),right($a2,2)),"invalid date")),if($g2="2,IF($E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2"><date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))),if($g2="3,IF($E2<DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))))),if($g2="4,IF($E2<DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2><now()),date($j$3,left($a2,2),right($a2,2)),"invalid date"))))),"invalid="" #="" of="" payments"))))
<date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$4,left($a2,2),right($a2,2)),"invalid date")),if($g2="2,IF($E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2"><date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))),if($g2="3,IF($E2<DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))))),if($g2="4,IF($E2<DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2><now()),date($j$3,left($a2,2),right($a2,2)),"invalid date"))))),"invalid="" #="" of="" payments"))))
<date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$4,left($a2,2),right($a2,2)),"invalid date")),if($g2="2,IF($E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2"><date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))),if($g2="3,IF($E2<DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))))),if($g2="4,IF($E2<DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2><now()),date($j$3,left($a2,2),right($a2,2)),"invalid date"))))),"invalid="" #="" of="" payments"))))
<date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$4,left($a2,2),right($a2,2)),"invalid date")),if($g2="2,IF($E2<DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),DATE($J$2,LEFT($B2,2),RIGHT($B2,2)),IF(AND($E2"><date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))),if($g2="3,IF($E2<DATE($J$1,LEFT($C2,2),RIGHT($C2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2><now()),date($j$3,left($b2,2),right($b2,2)),"invalid date"))))),if($g2="4,IF($E2<DATE($J$1,LEFT($D2,2),RIGHT($D2,2)),DATE($J$2,LEFT($A2,2),RIGHT($A2,2)),IF(AND($E2"><date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2><date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2><date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2><now()),date($j$3,left($a2,2),right($a2,2)),"invalid date"))))),"invalid="" #="" of="" payments"))))
Cell G1: Number of Payments scheduled
Cell G2: =COUNTA($A2:$D2)
Cell I1: Last Year
Cell I2: Current year
Cell I3: Next year
Cell I4: Two years
Cell J1: =YEAR(EDATE(L1,-12))
Cell J2: =YEAR(L1)
Cell J3: =YEAR(EDATE(L1,12))
Cell J4: =YEAR(EDATE(L1,24))
Cell K1: Today
Cell L1: =NOW()
Let me know if anything is buggy!</now()),date($j$3,left($a2,2),right($a2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$4,left($a2,2),right($a2,2)),"invalid></date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$3,left($a2,2),right($a2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$4,left($a2,2),right($a2,2)),"invalid></date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$3,left($a2,2),right($a2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$4,left($a2,2),right($a2,2)),"invalid></date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$3,left($a2,2),right($a2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$4,left($a2,2),right($a2,2)),"invalid></now()),date($j$3,left($a2,2),right($a2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$2,left($d2,2),right($d2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($c2,2),right($c2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></date($j$2,left($b2,2),right($b2,2))),date($j$2,left($c2,2),right($c2,2)),if(and($e2></date($j$2,left($a2,2),right($a2,2))),date($j$2,left($b2,2),right($b2,2)),if(and($e2></now()),date($j$3,left($b2,2),right($b2,2)),"invalid></date($j$2,left($b2,2),right($b2,2))),date($j$3,left($a2,2),right($a2,2)),if(and($e2></now()),date($j$4,left($a2,2),right($a2,2)),"invalid></date($j$1,left($a2,2),right($a2,2)),date($j$2,left($a2,2),right($a2,2)),if(and($e2>[/TD]
[/TR]
</tbody>[/TABLE]