We have checked different options but could not find any specific option to create such output. You may please device your own logic to insert data into workbook as per your requirements. Please feel free to write us back if you have any other query in this regard.
Could you create a sample Excel file having your input data (in some sheet) and expected output (display) in other sheet in the workbook, save the file and provide us, we will check it soon.
PS. please zip the MS Excel file prior attaching here.