code: public int getRowIndex(String sheetName, String key) {
          logger.entering(new Object[] { sheetName, key });
          int index = -1;
          Sheet sheet = fetchSheet(sheetName);
  
          int rowCount = sheet.getPhysicalNumberOfRows();
          for (int i = 0; i < rowCount; i++) {
              Row row = sheet.getRow(i);
              if (row == null) {
                  continue;
              }
              String cellValue = row.getCell(0).toString();
              if ((key.compareTo(cellValue) == 0) && (!cellValue.contains("#"))) {
                  index = i;
                  break;
              }
          }
          logger.exiting(index);
          return index;
      }
docs: Search for the input key from the specified sheet name and return the index position of the row that contained
  the key
  
  @param sheetName
  - A String that represents the Sheet name from which data is to be read
  @param key
  - A String that represents the key for the row for which search is being done.
  @return - An int that represents the row number for which the key matches. Returns -1 if the search did not yield
  any results.