Creating Student IDs from student information

Josiah670

New Member
Joined
Aug 20, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
One of the employees at work asked me for help with an excel issue. She has a large list of students in an excel sheet and she needs to create unique IDs using the first three letters of the last name and and the first letter of the first name and finally the Date of birth in the format ddmmyy. I am not great with excel but tried to help. Below you can see a sample without the IDs.

Laura 1.png


After reading some information online, I cam up with this formula:
=UPPER(CONCATENATE(LEFT(D2,3)&(LEFT(C2,1))&TEXT(E2,"ddmmyy")))

There are 2 different issues. All dates starting in single digits 01-09 have the day and month reversed. Also all dates starting from 10 and up will not convert and appear as xx-xx-xxxx, The dates seem to be the main issue and since these excel sheets are large and created by someone else we cannot change them. Am I doing something wrong? Any help would be greatly appreciated. Below you can see the results of the formula.



P.S. Someone in our financial department suggested the following formula but I could not get it to work at all.


=UPPER(CONCATENATE(LEFT([@[Last Name]],3)&(LEFT([@[First Name]],1))&TEXT([@[Date of Birth]],"ddmmyy")))


Any help would be greatly appreciated. Have a great day.



Laura 2.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You need to make that table an actual table, it is using Structured References.

Snag_103350c4.png


 
Upvote 0
And what if they have same day of birth, and names as in two first rows in your example. How to differ those?
 
Upvote 0
It sounds as though some of your dates are text, rather than real dates. You will need to convert them to real dates.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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