Cathy
The following line
Code:
Cells(j, 4).Formula = "=COUNTIF(RC[-2]:R[" & lr & "]C[-2],RC[-1] & ""*"")" '<----- Column D has formula
needs to be changed to this
Code:
Cells(j, 4).Formula = "=COUNTIF(R1C[-2]:R[" & lr & "]C[-2],RC[-1] & ""*"")" '<----- Column D has formula
It should be =COUNTIF(R
1 instead of =COUNTIF(R
The 1 (one) needs to be there.
Good luck