As shown in below screen shot I have three revisions. Some sheets has all three revisions but has either one or two only. In the last column (TERMED AS FINAL in BELOW ) i need to show the latest revision.
[TABLE="width: 407"]
<tbody>[TR]
[TD]SHEET[/TD]
[TD]REV. 01[/TD]
[TD]REV. 02[/TD]
[TD]REV. 03[/TD]
[TD]FINAL[/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0001[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0002[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0003[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0004[/TD]
[TD]1[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0003[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 407"]
<tbody>[TR]
[TD]SHEET[/TD]
[TD]REV. 01[/TD]
[TD]REV. 02[/TD]
[TD]REV. 03[/TD]
[TD]FINAL[/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0001[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0002[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0003[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0004[/TD]
[TD]1[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]P029-DDD-STR-0003[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]