Hi littlefoot,

I guess the alignment of the data you provided is not as per order... would suggest you to upload a sample workbook.. thanks.

Regards,
DILIPandey

<click on below 'star' if this helps>