I prepare a daily spreadsheet that varies in length (up to 3000 rows)…. Column A contains defined “groups” of various lengths beginning in A2 with a blank row separator between each group…. Column P contains numeric values unique to each group…. In Column Q, I want to rank each value in Column P (from low to high) with “low” = 1.
I have been using the following formula located in P2:
=IF(ISBLANK(A2),””,1+SUMPRODUCT(($A$2:$A$3000=A2)*($P$2:$P$3000<P2)))
I copy and drag to the bottom of the sheet…. For some reason, I am getting lots of random errors?
Instead of the above, I would like to use VBA Code…. I don’t want to use the Macro recorder because of the random errors…. Can anyone help?
Thanks in advance,
KWL
I have been using the following formula located in P2:
=IF(ISBLANK(A2),””,1+SUMPRODUCT(($A$2:$A$3000=A2)*($P$2:$P$3000<P2)))
I copy and drag to the bottom of the sheet…. For some reason, I am getting lots of random errors?
Instead of the above, I would like to use VBA Code…. I don’t want to use the Macro recorder because of the random errors…. Can anyone help?
Thanks in advance,
KWL