Hi,
Yes that is because of cell formatting, you can apply the same logic with TEXT Function.
for example, make a helper column with following formula:
=TEXT(A2,"""PAID""000")
Or if you don't like helper columns:
Just Enter this in A2:
PAID001
And then enter this {array formula} in A3 and copy down:
=TEXT(IF(B2=B3,A2,MAX(SUBSTITUTE(A$2:A2,"PAID","")+0)+1),"""PAID""000")
{array formula needs to be committed using the key combination of
Ctrl+Shift+Enter (CSE) instead of just enter}
Regards,