Hi ,
Try this :
=MAX(IF(Sheet1!$B$2:$B$6=Sheet2!B2,Sheet1!$C$2:$C$6))
This is to be entered as an array formula , using CTRL SHIFT ENTER.
From the limited number of examples given , it is difficult to know whether you are looking for the date which occurs last in the range , or you are looking for the latest date ( by way of value ).
For example , if the first date against CD were to be October 2012 , while the second date against CD were to be June 2012 , which would you want as the output ? October 2012 because it is the latest date , or June 2012 because it is the date which occurs later in the range ?
Narayan