Question : Excel Username Macro

Hello,

Could someone please help me out with a macro for Excel 2007.  I have trying to combine a few columns to create a username (please see attached excel file).

The username would need to be the first four letters of the first name, first letter of the last name, birth month ""2digit"", birth day ""2digit"")"

Example:

First Name:  William      
Last Name:  Smith      
Birth Date:  3/20/2001
Username:  WILLS0320
                  
Thanks


Randy
Attachments:
 
Excel Username File
 

Answer : Excel Username Macro

You can try this formula

=LEFT(A2,4)&LEFT(B2,1)&RIGHT(100+MONTH(C2),2)&RIGHT(DAY(C2)+100,2)

Assuming the names will always provide at least 4 chars.
Random Solutions  
 
programming4us programming4us