We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Count the number of rows existed in a Excel Sheep

Hi All,

We have one excel sheet,In that client entered some N number of rows.

By using Aspose how to the number of rows existed in a excel sheet


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for your interest in Aspose products. I move this thread into the Aspose.Cells forum. They will answer you shortly.

Best regards.


Please use Cells.MaxDataRow and Cells.MaxDataColumn properties to get the last row/column index which contains data in a sheet.


Workbook workbook = new Workbook();
Cells cells = workbook.Worksheets[0].Cells;
int lastrowindex = cells.MaxDataRow;

Thank you.