Home » excel » java – Filtering in Apache POI

java – Filtering in Apache POI

Posted by: admin May 14, 2020 Leave a comment

Questions:

I just started using the Apache POI to work on data from and Excel spreadsheet in Java. Right now I’m just tinking around. However, I can’t seem to understand how the setAutoFilter function works. Could someone please explain it or give a link to some piece of code that shows Excel data being filtered.

Thank you.

How to&Answers:
sheet.setAutoFilter(CellRangeAddress.valueOf("A1:N1"));