Hi All,
I was able to get the required data and finally struggling with the Formatting of the headers. It will be very helpful if someone can help achieve the desired output. I have attached the excel, in which their are 2 scenarios. It has Input and output tab which shows the what I need. For easy understanding I have added border to understand the Merge part.
Thanks in Advance!