Paulina
(Paulina)
May 30, 2021, 2:22pm
1
Hi,
I need your help.
I presented the problem in the drawing. I need to put columns 1 and 2 under the data from column 0. I have no problem doing something like this but I don’t know how to automate Excel when I don’t know how many columns I will have.
Please help.
hi @Paulina ,
What you are looking for is possible
Please follow the following steps and let me know if you have any query in any of them:
Read the whole table i.e. from column H to K
You can check the count of column and put a for loop for that.
Filter this data table, and keep the following columns
Hardcode 1st column ie. 0
and 2nd column will be the ( index counter + 1 )
This will save the column H and I, then H and J, then H and K and so on!!!
Now merge the data table with property as ignore. This will be with the obtained DT from the filter DT.
Now you can write this into an Excel.
Hope this helps
Do let me know in case of any query. Please mark this as solution if it has solved your query
Thanks,
Shubham
1 Like
Paulina
(Paulina)
May 31, 2021, 6:52am
3
Hi @Shubham_Varshney
I tried to do according to your instructions but something went wrong.
Main.xaml (10.2 KB)
excel.xlsx (8.6 KB)
I would be grateful for your further help.
Please find the updated xaml for reference.
Main (5).xaml (12.8 KB)
Thanks,
Shuabham
1 Like
Paulina
(Paulina)
May 31, 2021, 10:51am
5
Hi @Shubham_Varshney ,
There is still a lot of learning ahead of me. Thank you very much!
1 Like
No worries, we in community are all there for you to help you out
I’ll suggest if you get stuck, think on how to resolve it first by either searching or doing it yourself and then if you are still stuck then only post it in forum…
This way you will read more ways to resolve
system
(system)
Closed
June 3, 2021, 12:23pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.