Please Help me for doing this
<p>I am having an Excel file where I am finding sequential order. I have TV id in col 1 and Episode id in col 3. I have to find sequential in both the places. Episode can be only one or can be more.</p>

<p><img src="http://i.stack.imgur.com/o8PZY.png" alt="example of Excel Table"></p>

<p>Attached an image for your reference. How do I distinguish between these two columns?</p>

<p>If it is not in sequence it should show that Id So &amp; So is not in sequence.</p>

<pre><code>  int Count = 1; for (int n1=startpos;n1&lt;num;n1++)
  if (cells.checkCell(n1, Colno).getValue()==null) {    
     Cell cell=cells.getCell(n1,Colno);
     Style style = cells.getCell( n1,Colno).getStyle();
     style.setColor(Color.TEAL);
     cell.setStyle(style);
  }else{  
     int intCounter =                
         Integer.parseInt(cells.checkCell(n1,Colno).getValue().toString());
     if(intCounter!=Count) {    
        Cell cell=cells.getCell(n1,Colno);
        Style style = cells.getCell( n1,Colno).getStyle();  
        style.setColor(Color.SILVER);  cell.setStyle(style);
     }
     n1=n1+1;
     Count=Count+1;
  }
</code></pre>
