Auto Numbering Repeated Values

shlaxim

New Member
Joined
Jun 10, 2016
Messages
2
I can't find a way to auto number and repeat numbering according to the repeated values in the other column like this:

[TABLE="width: 200"]
<tbody>[TR]
[TD]1
[/TD]
[TD]Mike
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Mike
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Mike
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]John
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]John
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Tony
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Tony
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Tony
[/TD]
[/TR]
</tbody>[/TABLE]

Please help. Thank you in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I can't find a way to auto number and repeat numbering according to the repeated values in the other column like this:

[TABLE="width: 200"]
<tbody>[TR]
[TD]1[/TD]
[TD]Mike[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Mike[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Mike[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Tony[/TD]
[/TR]
</tbody>[/TABLE]

Please help. Thank you in advance.
Hi shlaxim, welcome to the boards.

Assuming your names are in column B starting in B1, put a 1 in cell A1, then put the following formula in A2 and drag-fill down:

=IF(B2=B1,A1,A1+1)
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top