Hi I wanted to get the name that have “Available” status only.
Meanwhile the table is divided into 3 table and each have different function.
How to get the name with the status “Available” only and write to datatable
Hi I wanted to get the name that have “Available” status only.
Meanwhile the table is divided into 3 table and each have different function.
How to get the name with the status “Available” only and write to datatable
Use “Read Range” activity three times to read the data from the three tables into three separate DataTables (let’s call them dtTable1, dtTable2, dtTable3).
Use the “Build DataTable” activity to create a new DataTable (dtFiltered) with the same structure as the original tables.
Use a For Each Row loop to iterate through dtTable1.
Inside the loop, use an If activity to check if the row has “Available” status.
Condition: row(“Status”).ToString.Trim.Equals(“Available”)
If the condition is true, use the “Add Data Row” activity to add the row to dtFiltered.
Repeat steps 3-5 for dtTable2 and dtTable3.
After processing all three tables, use the “Write Range” activity to write dtFiltered to a new Excel or CSV file.
Optionally, you can display or log the content of dtFiltered to verify the extracted data.
Can I use modern excel activity with DataTable activity?
Yes you can use modern activity or simply use read range workbook, instead of excel process scope
Hi @ainaasyhda
Try this:
table1
, table2
, and table3
).mergedTable
).Hi @ainaasyhda
Please find the below xaml.
ExcelTask.zip (141.4 KB)
O/P Excel:
Input.xlsx (10.3 KB)
I hope it helps!!
have you tried this?
For this method, will it read each table ? Sometimes different table need to output different column value
No It was read as one table. If the columns are same in all then it will works. @ainaasyhda
Its works check the below excel.
Input.xlsx (10.3 KB)
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.