Belair58
Board Regular
- Joined
- Mar 31, 2005
- Messages
- 95
Hello,
I have a sheet that I've created a blank row after each change in Column J. I need to have column P in that row to have the formula, but dynamic values for the column O should be dynamic : =ROUND(COUNTIF($O$2:$O$1007,"Late")/COUNTA($O$2:$O$1007)*100,2) at each blank line. I've got the do while loop created to paste in the formula, but I have no idea how to tell the code to only look at the range in column O that corresponds to the number of rows that are actually in that section.
So the code =ROUND(COUNTIF($O$????:$O$????,"Late")/COUNTA($O$????:$O$????)*100,2) needs to be dynamic. I've thought of looking for a blank cell, which each section except for the first would have, but not certain how to write that into the formula.
Any help would be greatly appreciated
I have a sheet that I've created a blank row after each change in Column J. I need to have column P in that row to have the formula, but dynamic values for the column O should be dynamic : =ROUND(COUNTIF($O$2:$O$1007,"Late")/COUNTA($O$2:$O$1007)*100,2) at each blank line. I've got the do while loop created to paste in the formula, but I have no idea how to tell the code to only look at the range in column O that corresponds to the number of rows that are actually in that section.
So the code =ROUND(COUNTIF($O$????:$O$????,"Late")/COUNTA($O$????:$O$????)*100,2) needs to be dynamic. I've thought of looking for a blank cell, which each section except for the first would have, but not certain how to write that into the formula.
Any help would be greatly appreciated