I am working on a data transformation task where I need to transpose data from rows to columns. How can I programmatically add column headers under each transposed dataset and name them sequentially as “Invoice 1”, “Invoice 2”, and so on?
Please refer to the example below:
This is how the initial data would look like
Inside For Each Row activity split the values using comma as delimiter and if u want to write in same excel use write cell activity. Those split value will be in Array so use For Each and then inside that use write cell.
how to make it iterate through and write a header for each of the number of unempty columns there are? {in the form invoice 1, invoice 2, …, invoice n for n as the number of unempty columns without a header}
Thank you for your response. Unfortunately, I’m unable to download the zip file due to restrictions on my end. Could you please assist me by providing the code for each of the assign activities?
It’s syntax to tell the compiler that we are passing a single character to split that is ":". Whenever you have to split anything with single character you should be passing c