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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,222,038
Messages
6,163,549
Members
451,843
Latest member
vitto

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