You will need to change your thread title to something that actually describes your problem, please.

And while you are at doing that, please include more detail about what you are trying to do. Show the data you are working with (you did that) and show examples of your output and how you arrived at that?