Currently have an input file of the format shown below
The expected output should
How to achieve this thru Excel?