how to get unique Id based on data in multiple coloum

beinggovinda

New Member
Joined
Aug 9, 2015
Messages
17
I want to generate unique Id in column B, based on data in column C, D , E , F.
I want first letter of Column C, first 2 letters of column F then all the digits of coumn E (digits only without . dot). can anyone please help?

[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD]sl no[/TD]
[TD]unique id[/TD]
[TD]name[/TD]
[TD]contact[/TD]
[TD]dob[/TD]
[TD]father name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]ramesh[/TD]
[TD]9865756891[/TD]
[TD]12.04.89[/TD]
[TD]madhav[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]james[/TD]
[TD]8798659785[/TD]
[TD]16.07.91[/TD]
[TD]mathew[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]shashank[/TD]
[TD]9876598615[/TD]
[TD]15.10.95[/TD]
[TD]manav[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]dileep[/TD]
[TD]5687598654[/TD]
[TD]01.02.90[/TD]
[TD]vikash[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 514"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

very ez.

In B2 then copy down :

=LEFT(C2,1)&LEFT(F2,2)&SUBSTITUTE(E2,".","")
 
Last edited:
Upvote 0
and what if i want first 4 letters of Column C, last 6 letters of column D then first 4 digits of coumn E (digits only without . dot).
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,710
Members
452,994
Latest member
Janick

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