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
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 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!