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
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 301 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!