I am using PHPExcel for bulk data import. While import the excel sheet I want to know the total row count of existing data. For that I am using the code,
$lastRow = $worksheet->getHighestRow();
Now, I am trying to import an excel sheet, In that sheet having 800 rows. But the row count shows 65536 by using the above code. Actually I want to get the row count is 800.
The above code returns the empty row count also. But I need count of data existing rows. How to get that. I am tried the below code also
$lastRow = $worksheet->getHighestDataRow();
but it is also not working. Can anyone please help me.