When you say exact matching, does that mean you will have "Y-lease" and "Y*-lease" both listed in the sub-table? Can you post a workbook, with the expected output.
I am sorry. If Y-lease or Y*-lease may be only in the top table or actual data, Can I get an expected result? Whether I am going to not include extra Y*-lease to the sub table.