Hi and welcome to the forum.
Please read the forum rules to have the best experience.
Think to upload a file with sample data, explain clearly your case. Give a manual example on how a correct solution looks like.
All of the above is missing is your thread. We can only guess here. Please consider to update your question.