I have a spreadsheet which is a dump of our user's full names from an old email server. The names appear to be in the formats Firstname Surname, Firstname1-Firstname2 Surname, or Firstname Surname1-Surname2 depending on whether they have a hyphenated firstname or two surnames hyphenated.
I'm not an Excel guy in an way, shape or form, but I'd like to know if there is a way to create a formula to output the firstname initial and the full surname (for both single and hyphenated surnames, but without the hyphen) + the @domain.com into the column needed to list their email address for the powershell script I'll use to automate the account creation for the new email server.
eg.
I'm not an Excel guy in an way, shape or form, but I'd like to know if there is a way to create a formula to output the firstname initial and the full surname (for both single and hyphenated surnames, but without the hyphen) + the @domain.com into the column needed to list their email address for the powershell script I'll use to automate the account creation for the new email server.
eg.
"Full Name" (existing data) | "Old Email Address" (existing data) | "New Email Address" (new data based on calc) |
Firstname Surname | firstname@olddomain.com | fsurname@newdomain.com |
Firstname1-Firstname2 Surname | firstname1-firstname2@olddomain.com | fsurname@newdomain.com |
Firstname Surname1-Surname2 | firstname@olddomain.com | fsurname1surname2@newdomain.com |