vba loop through column and if certain value then increment
问题 I have a column C filled with empty cells or cells that contain value "OK". I need that every cell which contains text "OK" will be change to incremented value 1,2,3 etc. total 2642 cells C - 1 [empty] - 2 [empty] - 3 [OK] - 4 [empty] - 5 [OK] - 6 [empty] Need to look like: C - 1 [empty] - 2 [empty] - 3 [1] - 4 [empty] - 5 [2] - 6 [empty] Basically i need to autoincrement but when filter data autoincrement doesn't work Code i use autoincrements all values by not display value on the the cell