title: for loop returning only first value while reading from excel file
body: <p>I am trying to enter a cell value and display corresponding cell value from .xlsx file. It is giving result only for 1st cell value, it is not looping. Can anyone help? My excel file has two columns and many rows. I am entering value of a through console which is equal to any value in 1st column then it should display 2nd column value. If i enter 1st cell value it is giving output but if i enter any other value in 1st column it is not giving result</p>
  
  <pre><code>for (int i = 1, j = 1; excelSheet.Cells[i, 1].value.ToString() == a.ToString(); i++, j++)
  {
      string b = excelSheet.Cells[j, 2].value.ToString();
      Console.WriteLine(b);
      Console.ReadLine();
  
      if (excelSheet.Cells[i, 1].value == null)
          break;
  }
  </code></pre>