Thank you so much for checking.
In your code i could see that there’s some sorting according to the column “Name”. But i dont want to sort the data based on the column “Name”. I want the rows having the same “JMBWN” value to be together and the first column to be in order.
I got the result from your code, but does this solution satisfy the above criteria even if values in “Name” column changes?