

In the input, there is the client's name and bill number. And underneath it, there is code. For example, in row 3, there is client name "5145" and Bill num "Shrin". Under that, there are two rows which are bill details of client 5145. To analyze the data, I need to paste the client name and bill num in columns M and N. Can anyone please write a small VBA code so that I can get the output as per the screenshot.