So guys i have an excel like this, i only want to take the data from code which have code 003. But i only need the relationship value which is “Not single” in this picture
NOTE : I want doing this dynamically, cause the data not always be like that
hi @Gokul001
I was tried using this dtTable.DefaultView.ToTable(False,“Relationship”) but it didnt work, do u know why?
Hi!
Try this:
- Read range - output - dt_Out
- For each row in data table - Pass the dt_Out
- Now take one if condition and pass the expression like this
CurrenRow("Code").ToString.Trim.Contains("003") And CurrenRow("Relationship").ToString.Trim.Contains("Not single")
Now you will get the data whose code is 003 and also his relationship is not single in the then block
In else block you will get the rest of the data
Another Approach:
Use Filer Data Table
Regards
NaNi
Have you tried with Filter data table? What is the output for that input you shared? @Kelvin1
after reading the data in the excel spreadsheet into a data table you can use the “For each row in data table” activity to iterate through the whole spreadsheet. and then use “CurrentRow.ItemArray[].Tostring()” to the get the value
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.