Hello community, i’m facing a new task but i don’t have idea how can i solve it.
I receive an excel that can have for example any of this formats
Somethimes come like this: (in this case i need to insert two new columns id at the begin and año at the end)
Or like this: (in this case i need to reorder id to the begin and año to the end
How can i check which format i’m working with ? be cause i could donwload an excel but i don’t know what format does it have maybe a or maybe b and depending the case i will modify
Simple just use build data table with fixed template, whatever the format your input excel file that doesn’t matter just read the file loop record and rad values using row.item(“column name”) so your then use add data row and pass parameters in order you created ATA table, this way you can make sure whatever the Input output always the same order.
Use build data table activity, and provide columns like Id(string), nombre(string),correo(string) and so on whatever the order you want,
Then use Excel application scope read you input file using read range,
Now you have data table
Use for each row activity
Use add data row activity inside for each and in input array {row.item(“ID”). ToString, row.item(“nombre”). ToString so on in same order you used in build date table…}