I have a excel sheet , where I am searching a name(Eg: AAA). The name might appear in multiple rows. I need to extract only those rows where AAA is present and copy to another datatable
Thanks.
But my input file is on similar basis , where i have more than 900 rows.
and my search item is not hardcoded. Like i will be looping a column from a datable and searching each value if it is found in another datatable.
So how do i do that using filter datatable wizard using column number rather than column name
In the above image, I will be looping through each value in the column and search if it matches in the excel file(book1) attached above. Then i have to extract the rows containing that value and copy to another datatable
Out put should be as shown below
Thanks it works. I just need one modification.
Suppose the first value that i am searching is AAA, then it should keep only AAA related rows. next if search value is CCC, it must keep CCC related rows
Can this be done in that
No .
I have two excel files
from 1st excel file(data) , i will be looping each value in the column and checking that exists in excel file-2(book1)
if a match is found, say for 1st value AAA, then all related columns should be extracted.
the same applies for all values in excel file(data.xlsx).
So when i search and a match is found, in the output i must get only that value related rows. not others