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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
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

LValencia

New Member
Joined
Dec 14, 2016
Messages
10
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

keiserj

Board Regular
Joined
May 31, 2013
Messages
89
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

LValencia

New Member
Joined
Dec 14, 2016
Messages
10
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

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
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,191,282
Messages
5,985,740
Members
439,978
Latest member
Mr930R

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
Top