I am shortly going to be importing all the new intake for September into the AD, and using a csv file to create the users. However, I need a formula to create our usernames!
EG. Student called Joe Bloggs would have the username y9BloggsJ. So I need a formaula which will add the "y9" to the beginning of the surname, and then their first initial to the end.
I know it can be done...I just can't remember the formula for it!
Help please! :o :D
if you have 3 columns:
y9 bloggs joe
etc... then the following formula will stick em together and add the first char in:
super job! That'll do nicely! cheers!
I have been playing, but couldn't get it quite right!
Using =CONCATENATE() can help as well.
If you could copy and paste a couple of rows from the csv and put that into a new csv and change the end user names / details etc and then upload that after to here we can see the output and amend that.
Originally Posted by localzuk
If you do have column 1 with year9 or yr9 or something else then obviously that will need re formatting.
Other then that the above should work fine ( and that's how I would of done it as well )
The formatted names will be stored as a formula so you may want to copy that column to another one using Paste Special and selecting value. You can then delete the other columns that you don't need. I also use Excel to check for duplicates and correct them within Excel rather than having the import program decide how they will be differentiated.
I use something similar that deals with a middle initial
[Display] Name: Joe P Bloggs [Excel Cells A1, B1 & C1)
Formula for username:
Formula for displayName:
The first formula converts the username to lowercase, uses the first letter of A1. It then checks to see if B1 contains any data, if it DOES then it includes the inital in B1 and the surname in C1, if B1 is empty, then it only displays the surname..
=A1&(IF(B1<>""," "&B1&" "&C1," "&C1))
The second formula is very similar to the first, but inludes spaces around the initial or before the surname - depending on the value of B1
I use this in conjunction with a SIMS export and WiseSofts AccountManagement Spreadsheet..