Not able to fliter excel

I have an excel with multiple colum .I am trying to filter column as “Ccy=EUR”

I am using the datatable and select to filter

But I am getting this error


Could you please check the add header property of read range.

Hey @sampaddas

If you have already checked headers property which i assumed you have because @ddpadil here Column Name should come in the left of assignment operator not in the right :slight_smile:

@sampaddas try this and let me know :slight_smile: dtTable.Select(“[CCy]=‘EUR’”)


Thanks aksh ! It worked!

One quick question - Is there a way by which we can get the filtered data along with the ‘Header’ ?

well you can

  1. First clone the datatable into a new datatable like Datatable new_dt = dtTable.Clone()
  2. Then your will return an Array of DataRows Datarow = dtTable.Select(“[CCy]=‘EUR’”)
  3. Then you can use those rows into your new_dt Datatable (having same schema) by using “Add Data Row” Activity.

For your Ref. -

  1. Then write this new_dt to an excel write range activity :slight_smile: or use output datatable activity along with writeline to see your datatable output as a csv string in the console panel.


Thanks !