Number multiple same names

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
195
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
ID Name
1 Replacement Boot Laces
Replacement Boot Laces
2 Blousing Garters
Blousing Garters
Blousing Garters
Blousing Garters
3 GI Extreme Cold Weather Bunny Boots
GI Extreme Cold Weather Bunny Boots
GI Extreme Cold Weather Bunny Boots
GI Extreme Cold Weather Bunny Boots
GI Extreme Cold Weather Bunny Boots
GI Extreme Cold Weather Bunny Boots
4 Nylon Commando Wallet
Nylon Commando Wallet
Nylon Commando Wallet
Nylon Commando Wallet
Nylon Commando Wallet
Nylon Commando Wallet
Nylon Commando Wallet
Pepper Sprays Gel Sabre Red
Fire Master Fog Pepper Spray
Pepper Sprays Gel Sabre Red
Pepper Sprays Gel Sabre Red
Pepper Sprays Gel Sabre Red
Pepper Sprays Gel Sabre Red
Key Chain Pepper Spray
Pepper Sprays Gel Sabre Red
Cop Top Fog Cone Pepper Spray
Flip Top Stream Pepper Spray
Flip Top Cop Med Fog Cone Pepper Spray
Pepper Sprays Gel Sabre Red
Cop Top Stream Pepper Spray
Pepper Sprays Gel Sabre Red
Cop Top Fog Cone Pepper Spray
Flip Top Stream Pepper Spray
Flip Top Cop Med Fog Cone Pepper Spray
Cop Top Stream Pepper Spray
Pepper Sprays Gel Sabre Red
Pepper Sprays Gel Sabre Red
Police Magnum Sabre Red
Pepper Sprays Gel Sabre Red

I need a function or formula to number the first unique name for 7,000 items. As you can see the names are not always sequential. Thank you in advance for any and all assistance, it is greatly appreciated. See 1, 2, 3, 4 for example
 
One of the basic procedure to get what you want to achieve is:
> Sort the sheet by the name of the items.
> Then in column B (i.e. number), enter 1 in cell corresponding to the first item and use this formula, =IF(A3<>A2,B2+1,B2), in column B3 and copy it down.
> Concatenate column B and Column A using this formula =IF(A2<>A1,B2&" "&A2,A2) in column C2
This will produce result as:

[TABLE="width: 593"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]item[/TD]
[TD]number[/TD]
[TD] concatenation [/TD]
[/TR]
[TR]
[TD]Blousing Garters[/TD]
[TD]1[/TD]
[TD]1 Blousing Garters [/TD]
[/TR]
[TR]
[TD]Blousing Garters[/TD]
[TD]1[/TD]
[TD]Blousing Garters[/TD]
[/TR]
[TR]
[TD]Blousing Garters[/TD]
[TD]1[/TD]
[TD]Blousing Garters[/TD]
[/TR]
[TR]
[TD]Blousing Garters[/TD]
[TD]1[/TD]
[TD]Blousing Garters[/TD]
[/TR]
[TR]
[TD]Cop Top Fog Cone Pepper Spray[/TD]
[TD]2[/TD]
[TD]2 Cop Top Fog Cone Pepper Spray[/TD]
[/TR]
[TR]
[TD]Cop Top Fog Cone Pepper Spray[/TD]
[TD]2[/TD]
[TD]Cop Top Fog Cone Pepper Spray[/TD]
[/TR]
[TR]
[TD]Cop Top Stream Pepper Spray[/TD]
[TD]3[/TD]
[TD]3 Cop Top Stream Pepper Spray[/TD]
[/TR]
[TR]
[TD]Cop Top Stream Pepper Spray[/TD]
[TD]3[/TD]
[TD]Cop Top Stream Pepper Spray[/TD]
[/TR]
[TR]
[TD]Fire Master Fog Pepper Spray[/TD]
[TD]4[/TD]
[TD]4 Fire Master Fog Pepper Spray[/TD]
[/TR]
[TR]
[TD]Flip Top Cop Med Fog Cone Pepper Spray[/TD]
[TD]5[/TD]
[TD]5 Flip Top Cop Med Fog Cone Pepper Spray[/TD]
[/TR]
[TR]
[TD]Flip Top Cop Med Fog Cone Pepper Spray[/TD]
[TD]5[/TD]
[TD]Flip Top Cop Med Fog Cone Pepper Spray[/TD]
[/TR]
[TR]
[TD]Flip Top Stream Pepper Spray[/TD]
[TD]6[/TD]
[TD]6 Flip Top Stream Pepper Spray[/TD]
[/TR]
[TR]
[TD]Flip Top Stream Pepper Spray[/TD]
[TD]6[/TD]
[TD]Flip Top Stream Pepper Spray[/TD]
[/TR]
[TR]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[TD]7[/TD]
[TD]7 GI Extreme Cold Weather Bunny Boots[/TD]
[/TR]
[TR]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[TD]7[/TD]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[/TR]
[TR]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[TD]7[/TD]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[/TR]
[TR]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[TD]7[/TD]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[/TR]
[TR]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[TD]7[/TD]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[/TR]
[TR]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[TD]7[/TD]
[TD]GI Extreme Cold Weather Bunny Boots[/TD]
[/TR]
[TR]
[TD]Key Chain Pepper Spray[/TD]
[TD]8[/TD]
[TD]8 Key Chain Pepper Spray[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]9 Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Nylon Commando Wallet[/TD]
[TD]9[/TD]
[TD]Nylon Commando Wallet[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]10 Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
[TR]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[TD]10[/TD]
[TD]Pepper Sprays Gel Sabre Red[/TD]
[/TR]
</tbody>[/TABLE]

Hope it helps!
 
Upvote 0

Excel 2010
AB
1Product IDName
21Replacement Boot Laces
31Replacement Boot Laces
42Blousing Garters
52Blousing Garters
62Blousing Garters
72Blousing Garters
83GI Extreme Cold Weather Bunny Boots
93GI Extreme Cold Weather Bunny Boots
103GI Extreme Cold Weather Bunny Boots
113GI Extreme Cold Weather Bunny Boots
123GI Extreme Cold Weather Bunny Boots
133GI Extreme Cold Weather Bunny Boots
144Nylon Commando Wallet
154Nylon Commando Wallet
164Nylon Commando Wallet
174Nylon Commando Wallet
184Nylon Commando Wallet
194Nylon Commando Wallet
204Nylon Commando Wallet
215Pepper Sprays Gel Sabre Red
226Fire Master Fog Pepper Spray
235Pepper Sprays Gel Sabre Red
245Pepper Sprays Gel Sabre Red
255Pepper Sprays Gel Sabre Red
265Pepper Sprays Gel Sabre Red
277Key Chain Pepper Spray
285Pepper Sprays Gel Sabre Red
298Cop Top Fog Cone Pepper Spray
309Flip Top Stream Pepper Spray
3110Flip Top Cop Med Fog Cone Pepper Spray
325Pepper Sprays Gel Sabre Red
3311Cop Top Stream Pepper Spray
345Pepper Sprays Gel Sabre Red
358Cop Top Fog Cone Pepper Spray
369Flip Top Stream Pepper Spray
3710Flip Top Cop Med Fog Cone Pepper Spray
3811Cop Top Stream Pepper Spray
395Pepper Sprays Gel Sabre Red
405Pepper Sprays Gel Sabre Red
4112Police Magnum Sabre Red
425Pepper Sprays Gel Sabre Red
4313Police Magnum Advanced 3 in 1 Formaula Sabre Red
445Pepper Sprays Gel Sabre Red
4514Tactical Baton Sabre Red
4615Pepper Spray Refill Sabre Red
4716Sabre Red Blue Face Pepper Spray
485Pepper Sprays Gel Sabre Red
495Pepper Sprays Gel Sabre Red
505Pepper Sprays Gel Sabre Red
515Pepper Sprays Gel Sabre Red
525Pepper Sprays Gel Sabre Red
5317Sabre Red Spitfire Pepper Spray
5418Sabre Home Away Protection Kit
5519Sabre Red Pepper Self Defense Spray
5619Sabre Red Pepper Self Defense Spray
57201 5 Million Volt Stun Gun
5821650K Volt Stun Gun
5922Sabre 600K Volt Stun Gun
6022Sabre 600K Volt Stun Gun
6123Sabre 800K Volt Stun Gun
6223Sabre 800K Volt Stun Gun
6324Baton Stun Gun
6425UZI Metal Detector
6526Stun Gun Pen
6627Personal Protection Combo Pack
6728UZI 1 5 Million Volt Stun Gun
682912 Million Volt Stunner Stun Gun
Sheet1
Cell Formulas
RangeFormula
A1Product ID
A21
A31
A42
A52
A62
A72
A83
A93
A103
A113
A123
A133
A144
A154
A164
A174
A184
A194
A204
A215
A226
A235
A245
A255
A265
A277
A285
A298
B1Name
B2Replacement Boot Laces
B3Replacement Boot Laces
B4Blousing Garters
B5Blousing Garters
B6Blousing Garters
B7Blousing Garters
B8GI Extreme Cold Weather Bunny Boots
B9GI Extreme Cold Weather Bunny Boots
B10GI Extreme Cold Weather Bunny Boots
B11GI Extreme Cold Weather Bunny Boots
B12GI Extreme Cold Weather Bunny Boots
B13GI Extreme Cold Weather Bunny Boots
B14Nylon Commando Wallet
B15Nylon Commando Wallet
B16Nylon Commando Wallet
B17Nylon Commando Wallet
B18Nylon Commando Wallet
B19Nylon Commando Wallet
B20Nylon Commando Wallet
B21Pepper Sprays Gel Sabre Red
B22Fire Master Fog Pepper Spray
B23Pepper Sprays Gel Sabre Red
B24Pepper Sprays Gel Sabre Red
B25Pepper Sprays Gel Sabre Red
B26Pepper Sprays Gel Sabre Red
B27Key Chain Pepper Spray
B28Pepper Sprays Gel Sabre Red
B29Cop Top Fog Cone Pepper Spray


Here is the spreadsheet that I have manually started numbering.
 
Upvote 0

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