First you show an example in the attached workbook what your data looks like and what you want to achieve.

Artik