Why don't you just use a formula. If your dates are in B2,C2,D2 and E2, a formula in F2 = MAX(B2:E2) will give you the latest date.