Thanks for your suggestion

I have attached the sample excel for my problem