Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Change Names to E-Mail addresses Q

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Change Names to E-Mail addresses Q

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Change Names to E-Mail addresses Q

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Change Names to E-Mail addresses Q

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I sort e-mail addresses? Carter Devereaux Excel Discussion (Misc queries) 4 June 24th 08 02:39 AM
Importing E-Mail Addresses Pauline Excel Discussion (Misc queries) 1 December 11th 07 05:51 AM
E-Mail Addresses in Excel lzardkng34 Excel Discussion (Misc queries) 4 November 9th 06 11:36 PM
How to type in customers' names & addresses to print mail labels? Ammable Excel Discussion (Misc queries) 1 October 28th 06 08:09 PM
How do I put a list of names and e-mail addresses in excel so tha. trav Excel Discussion (Misc queries) 4 December 2nd 04 02:56 AM


All times are GMT +1. The time now is 12:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"