I have been using these methods to count the number of rows in a sheet
getLastRowNum()
and
getPhysicalNumberOfRows()
They are working fine on two sheets of my workbook. But the third sheet containing 5 rows is returning 1 extra with both of the functions.
Sheet NumberofRows getLastRowNum() getPhysicalNumberOfRows()
1 9 9 10
2 56 56 57
3 5 4 5
What exactly is the difference in the working of the two functions and what can I do so I get reliable correct results?