Hi @ainaasyhda
Please find the below xaml.
ExcelTask.zip (141.4 KB)
O/P Excel:
Input.xlsx (10.3 KB)
I hope it helps!!