Countif duplicated value incrementally
Admin
✭✭
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
-
You would need to insert an Auto-Number column (called "Auto" in this example) with no special formatting and then adjust your COUNTIFS to include this column like so:
=COUNTIFS([Current Item Code]:[Current Item Code], [Current Item Code]@row, Auto:Auto, @cell <= Auto@row)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!