Determine used range in excel using c#
I am reading data from excel sheet using c#.I want to increase the speed of reading data in each excel by limiting the c# to read only rows that have data.How can i achieve this especially with some excel that comes with rows that are formatted the same way even with no data.