Sequentially Numbering Repeated Values
I have sheet where Group AAA is listed 50+ times then group BBB, CCC, etc.. What formula can be used to sequentially number the Groups like pictured below?
Thank you!
Best Answer
-
If you already have row numbers present, you can use something like this:
=COUNT(DISTINCT(COLLECT(Group:Group, [Row #]:[Row #], @cell<= [Row #]@row)))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Hi,
Leave row 1 of your sheet blank and begin your Group values on row 2. Then use the following formula in cell [Group #]2 and copy it down:
=IF(Group@row = Group1, [Group #]1, [Group #]1 + 1)
Hope this helps.
Steven
-
Thanks @Steven Stikons. Do you or anyone else know if this is possible without a blank row? I have another column that is providing row #s, and this solution creates some additional challenges to work around.
-
If you already have row numbers present, you can use something like this:
=COUNT(DISTINCT(COLLECT(Group:Group, [Row #]:[Row #], @cell<= [Row #]@row)))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thanks as always @Paul Newcome!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!