Create ID for duplicate values

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col A[/TD]
[TD]Desired Result[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mark[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mark[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rich[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rich[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Is it possible to create a formula that gives an incremental numerical value for duplicate values? My actual spread sheet will be bigger than the example above.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
one way:

<b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B2</th><td style="text-align:left">=IF(<font color="Blue">ISNA(<font color="Red">MATCH(<font color="Green">A2,A$1:A1,0</font>)</font>),MAX(<font color="Red">B$1:B1</font>)+1,VLOOKUP(<font color="Red">A2,A$1:B1,2,0</font>)</font>)</td></tr></tbody></table></td></tr></table><br />


Excel 2013/2016
AB
1NameID
2Mark1
3Mark1
4Rich2
5John3
6Rich2
7John3
Sheet2
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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