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
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Something like this??

Code:
=CONCATENATE(B1,C1,D1)

This will work, but do you always only have 2-digit numbers?
What about...
B1=5
C1=125
D1=Text
A1=5125text
or
B1=51
C1=25
D1=Text
A1=5125Text

I would suggest this way...
=B1&" "&C1&" "&D1
This will put a space between each piece to make sure you have 5 125 Text or 51 25 Text
 
Upvote 0
Yes I will only have two digits in either field. Second field is identifying a calendar requirement in months. How would I make a dash show in the number instead of a space?
Thanks for your quick reply
LV
 
Upvote 0
This will work, but do you always only have 2-digit numbers?
What about...
B1=5
C1=125
D1=Text
A1=5125text
or
B1=51
C1=25
D1=Text
A1=5125Text

I would suggest this way...
=B1&" "&C1&" "&D1
This will put a space between each piece to make sure you have 5 125 Text or 51 25 Text


=B1&"-"&C1&"-"&D1

Or

=CONCATENATE(B1,"-"C1,"-",D1)
 
Upvote 0
Ok correction, the months are like 24, 48, 60, 72... But what i forgot is I will have multiple numbers with the same starting information so I need to include a count number after the auto number. Example 20-24-GVI-001, 20-24-GVI-002. Each of these is a specific task within the group.
Thanks
 
Upvote 0
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
=B1&"-"&C1&"-"&D1&"-"&TEXT(COUNTIFS($B$1:B1,B1,$C$1:C1,C1,$D$1:D1,D1),"000")
copied down
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,107
Members
448,945
Latest member
Vmanchoppy

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