Unique Id number

LValencia

New Member
Joined
Dec 14, 2016
Messages
10
I would like to create an automatic unique Id number in cell A1, the data would come from B1, C1 and D1. B and C are numbers and D is text. The cell data looks like this B1=20, C1=24, D1=GVI. The auto number would look like this 2024GVI. I have tried several ideas but get errors since I have a text field.
I appreciate any help
 
OK try this...
A​
B​
C​
D​
1​
20-24-GVI-001
20​
24​
GVI
2​
20-24-GVI-002
20​
24​
GVI
3​
20-24-GVI-003
20​
24​
GVI
4​
20-48-GVI-001
20​
48​
GVI
5​
20-48-GVI-002
20​
48​
GVI
6​
20-48-GVI-003
20​
48​
GVI

<tbody>
</tbody>

=B1&"-"&C1&"-"&D1&"-"&TEXT(COUNTIFS($B$1:B1,B1,$C$1:C1,C1,$D$1:D1,D1),"000")
copied down


Yes:LOL:
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,215,308
Messages
6,124,178
Members
449,146
Latest member
el_gazar

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