Countif duplicated value incrementally

I am trying to count if Current Item Code column has repeated codes this could be any value but I want to count incrementally rather than total number i.e. first time it appears = 1 second time = 2 etc.

The code I have currently just counts total times and I do not know how to get this counting incrementally:

=COUNTIFS([Current Item Code]:[Current Item Code], [Current Item Code]@row)

Any help appreciated thanks.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!