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)))
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)))
-
Thanks as always @Paul Newcome!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!