Hi

Can you attach an example workbook so we can get a better idea of your structure.

Also, give an expected result for some of the sample data.

rylo