I have a series of data that is hundreds of rows. I have attached a sample file. In column E I want an "ID" that starts at 1 and sequentially numbers skipping any 0 values that are in column D. I was able to accomplish that with the below formula:
Formula:
=IF(D2=0,"",COUNTIF($D$2:$D2,">0"))
The part that I haven't been able to figure out is that I want the numbering to "reset" after a specific number of rows. The number of rows will be specified by a cell. In my example file, cell J1 indicates that the count should reset after 15 rows. I have also included what the desired result should look like in column F.
Any help would be greatly appreciated.
Bookmarks