Originally Posted by
PokerZan
Ok, I think I have this figured out.
You will need a help column for each date "gap" you are looking to measure. The first one will be (based on your example) in column K starting with cell K2. Here is the formula for you.
=IF((C2-D2)>1,"GAP",IF((C2-D2)<1,"OVERLAP",""))
This will put "GAP" where there is a gap of more than one day between the "T1 Valid to" and the "T2 Valid From" fields, as well as return an "OVERLAP" if the difference in days between the two dates are less than 1 day.
Just copy this column down the page and it should tell you where and how you need to fix the data.
In Column L you would just change the "(C2-D2)" to "(E2-F2)".
Hope this helps.
PZan
Bookmarks