When I use below piece of code for TC_001, it returns 8 as a column count, but I want the last row to be ignored in counting column which has Comment section. I want column count as 5 as there are 5 column with text ignoring the comment(Action 1) part.
int colCount = DataProviderFactory.getExcel().getColCount(0, 1);//this is user defined function using Apache POI to get column count of sheet with index 0 and row 1
So is there any way that on how to get column count ignoring the "Comment" row from count? I guess if there is any way to treat "G" row as last row then it might solve it. So the TC_001 should have count as 5, TC_002 as 7, TC_003 as 4, TC_004 as 1 etc. I tried to search solution online & found this one but have no idea how to implement it whether I have to add this in code or in excel or this is something different from my requirement. Please guide me on how I can achieve my requirement.