Condition: If Credit Note value & Party Name are same then latest date of invoice & it's no should come in desired invoice no & date coloumn
<colgroup><col><col><col><col><col><col></colgroup><tbody>
NAME
Inv No
Inv Date
CEDIT NOTE
Desired Inv No
Desired Date
A
217975312
03-Jan-17
833743881...