I’m trying to use Excel to create unique usernames using a person’s first initial and last name. My current table cells follow the format:
firstname middlename (possiblesecondmiddlename) lastname
How would I write a formula to create this username?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is that all in one cell? If so then with data in A1 try this formula in B1
=PROPER(LEFT(A1)&TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99)))If you want a limited number of characters, e.g. 7, add another LEFT function
=LEFT(PROPER(LEFT(A1)&TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))),7)