Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How to make a code using excel Hi I would like to create a code maker for people

ID: 3571021 • Letter: H

Question

How to make a code using excel

Hi

I would like to create a code maker for people that sign up for registration.

How I would like to do it is for example; Mike Smith's code to be 13S1215 which breaks down to be 13,S,12,1,5.

13 is for M which is the 13th letter in the alphabet

S is first letter of his 2nd name

12 is first numbers from the date

1 is for male

and 5 is for E the 1st letter of England.

so for Amy Owen her code would be 01,O,13,2,9

thanks !

1st name 2nd Name Date of Birth Male/Female location Mike Smith 12/12/14 Male England Amy Owen 13/12/14 Female Ireland Shannon Macmann 14/12/14 Male Wales

Explanation / Answer

Hi,

Try this for Mike, drag down.

=TEXT(CODE(UPPER(LEFT(A2,1)))-64,"00")&LEFT(B2,1)&DAY(C2)&(D2="Female")+1&CODE(UPPER(LEFT(E2,1)))-64

or if you want the commass.

=TEXT(CODE(UPPER(LEFT(A2,1)))-64,"00")&","&LEFT(B2,1)&","&DAY(C2)&",,"&(D2="Female")+1&","&CODE(UPPER(LEFT(E2,1)))-64

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote