on-internet
← Community

ClosedXML Excel filter rows by values in multiple columns

Stack Overflow ·

I have a Excel file with several thousand rows and columns up to "BP". I need to filter all of these rows by specific values in columns C and BP. I tested the filter functionality in ClosedXML as per the code below. When I apply a filter to one column all works well and the data is saved in the new file. When I try to apply two filters, the last one executed is the one that is applied. I have tried to use the worksheet as a Range/Table, same filtering problem. I eventually created the "rows" expression, that works, but the 1st row (header) is filtered out. public static void Filter(string sour

Comments

Sign in or sign up to comment and upvote.

No comments yet.