I need to find a solution to write values in an Excel Sheet. In my automation project I built a Data Table with Name and Value columns. The data table is filled during processing. In the end I want to write the values into that Excel Sheet.
I want to loop through the DT and find the matching column name in Excel to write the value in that specific column.
How can I do this?
I attached a picture where you can see on the right side the data table and on the left side the Excel table/sheet. I want to write the values from DT to Excel.
β Write the datatable in excel sheet.
β Then use the Copy\Paste range activity to copy the input sheet and paste it in other sheet, check the Transpose option to change the output as you like.
This transpose option will change columns as rows and rows as columns.
Thank you. I thought of this idea too but the problem is that the columns in Excel table will be extended in the future and if I just transpose the data from data table I fear that some values will not end up in the correct column. Therefore, I want to search the matching column and then write the value so that I am sure that I hit the correct column.
Thank you for this proposal. I would love to try that out but itβs hard to follow from that description. Could you provide a short example file to understand the logic? Would be really appreciated.
Thanks!