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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!