Give names an order rank

Beachson

Active Member
Joined
Oct 28, 2009
Messages
468
Hola, thanks for your time in advance.

I start with a column of names (Column A) that are sorted in a particular way and I would like to get a formula that starts with the number 1 for the first name and increases by 1 everytime a name changes down the column. Essentially it would look like this ...

(A) (B)

Ben 1
Ben 1
Ben 1
Fred 2
Fred 2
Ben 3
Ben 3
Jim 4


Any help is appreciated! Thanks!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
In B1 enter the number 1.

In B2 enter this formula and pull down.

Code:
=IF(A2=A1,B1,B1+1)

Regards,
Howard
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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