Filter Excel Table

I’ve already looked at all topics in this forum about this issue… But i still cant get this right.

I would like to know how can i filter an Excel table, that in the “Minutes” column has several values. And I only want an excel table with “Minutes” above 2000!

I aprecciate your help,


You can get into a datatable and perfrom below query

dtMinutes.Select("Minutes >2000")

If you want to perfrom this on the excelsheet you need to sort by minutes and remove which every is less than 2000.

1 Like

Thanks for the answer. I have already tried it, but the thing is That after performing the select it Will return a datarow array. And i cannot put That in another excel sheet, right? The second solution you gave i Will indeed test it :slight_smile: but the first one, if it works Will give better performance i guess!


thank you for your inquiry

two things,

1st. Why not using click activity and type into activity on the excel you are trying to automate.
2nd. Why not using the excel scope activity an run a macro on it?


here is an XAML but you might want to change the selector name*
COPY_INV_INI.xaml (7.9 KB)

Attached is the code

CopyDataTable.xaml (9.4 KB)

1 Like

@vvaidya thank you for sharing man :slight_smile: what about a 343385 lines data with 12 columns ? ´cause right now I need to filter a column like this:


would you say that the performance would be better.? the reason I’m asking is that I need to filter a range of centers

GM01 GM02
GM03 GM03
GM04 GM04
GM12 GM13
GM20 GM30
GM31 GM39
GM40 GM55
GM62 GM62
GP00 GP07

many thanks

Give a shot and see how long both robots are taking and which is less error prone.

1 Like

Ok… I’m on it man, many thanks :slight_smile:

1 Like

Try to do in an Isolated work flow if you have many rows to avoid app crash.

1 Like

Thank you all for the help! It worked smoothly :grin:

Hi vvaidya,

In this workflow, you used ImportRow as method name in invoke method activity. Where you declare this method or is it Built in method ?

Thanks & Regards,


I have used the CopyDataTable.xaml as reference and created a filter. I realized that duplicate records are also copied to the end excel.

Actual filter on excel returns :2 rows
Using Select :3 rows

First row is copied twice

Please help on this . I dont want duplicate records.

Got my answer after debugging. Found out the error . Anyway Thanks !

1 Like