Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
What formula could I use to convert names to e-mail addresses?
Name would be input in the format: First Last E-mail address format would be: An few examples: Joe Public would be Joe O'Public would be Joe McPublic would be etc etc |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This macro should do it
Sub makeemailaddress() For Each c In Range("a3:a5") With c .replace "'", "" .Value = LCase(c.Value) x = InStr(c, " ") .Value = Left(c, x - 1) & "." _ & Right(c, Len(c) - x) & " End With Next End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Seanie" wrote in message ... What formula could I use to convert names to e-mail addresses? Name would be input in the format: First Last E-mail address format would be: An few examples: Joe Public would be Joe O'Public would be Joe McPublic would be etc etc |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
For the text examples you showed, this will work...
=SUBSTITUTE(A1," " However, you don't say how your worksheet handles multiple first or last name. I have a two friends whose names show the problem... Mary Ann Jones << Mary Ann is her first name Robert Della Rossa << Della Rossa is his last name They are not married, but if they where, her name would be... Mary Ann Della Rossa The formula I gave you will not handle these types of names. And, if the names are in the same cell (as my formula assumes you meant), I don't think there is any way to handle names like these. -- Rick (MVP - Excel) "Seanie" wrote in message ... What formula could I use to convert names to e-mail addresses? Name would be input in the format: First Last E-mail address format would be: An few examples: Joe Public would be Joe O'Public would be Joe McPublic would be etc etc |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A formula solution.
=SUBSTITUTE(SUBSTITUTE(D3," " to make a hyperlink =HYPERLINK(LOWER(SUBSTITUTE(SUBSTITUTE(D3," ") -- Don Guillett Microsoft MVP Excel SalesAid Software "Seanie" wrote in message ... What formula could I use to convert names to e-mail addresses? Name would be input in the format: First Last E-mail address format would be: An few examples: Joe Public would be Joe O'Public would be Joe McPublic would be etc etc |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I sort e-mail addresses? | Excel Discussion (Misc queries) | |||
Importing E-Mail Addresses | Excel Discussion (Misc queries) | |||
E-Mail Addresses in Excel | Excel Discussion (Misc queries) | |||
How to type in customers' names & addresses to print mail labels? | Excel Discussion (Misc queries) | |||
How do I put a list of names and e-mail addresses in excel so tha. | Excel Discussion (Misc queries) |