2

Is there a way to count the number of rows and columns in an excel table in Java? I am using XSSF workbook to import and parse the data into the program. . There are no empty cells until after the last row or column. For example if there was a table that was 5 rows and 3 columns, cell b2 would not be empty.

Tim R
  • 514
  • 1
  • 8
  • 24

1 Answers1

1

XSSF sheet has a method called getPhysicalNumberOfRows() to get what looks like you want for rows, but I don't know about columns.

Aragorn
  • 5,021
  • 5
  • 26
  • 37