Combining first name , last name & domain to get email

techt

New Member
Joined
May 7, 2022
Messages
7
Platform
  1. Windows
My job requires me to sent 1000+ emails a day. I have to manually use concatenate on ever name to get the email. Is there a way to automate it ? I heard abt macros but never used it. the problem is I have
20 different types of email formats, how do I assign which formula to run on which email. Below is the list for Ref number ,they should correspond with Ref in column B. 2nd image is the end result. Hope I was able to explain my issue.

{f}{last} 1
{first}.{last} 2
{first} 3
{f}_{last} 4
{first}{l} 5
{f}.{last} 6
{first}_{last} 7
{last}{f} 8
{last} 9
{first}{last} 10
{first}.{l} 11
{last}.{first} 12
{first}-{last} 13
{last}{first} 14
{last}.{f} 15
{f}{l} 16
{l}{first} 17
{first}_{l} 18
{last}_{first} 19
{last}_{f} 20
Screenshot (172).png
 

Attachments

  • Screenshot (173).png
    Screenshot (173).png
    226.4 KB · Views: 11
engage.greenwayhealth.com.xlsx
C
741Julie Moore
742Justin Brennan
743Karen Cooper, MBA
744Keith Neumeyer
745Michele Leoni
746Mindy Anderson
747Paula Ventura
748Rosanne Raso, DNP, RN, NEA-BC, FAAN, FAONL
749Steven Emory
750Adnan Qadir
751Bonnie Radintz
752Caroline Kidston, GPHR, PHR, MBA
753Garrett Iannella
754Julie Correll, JD, CHC
755Kelly Gallagher
756Kelly Newton Jeffers
757Laura DePasquale
758Marian Stevens, SPHR
759Mark Gingrich
760Max Sow
Sheet1


is there a way i can remove everything after the comma in the name?
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You might use this before the Select Case:

Code:
For i = 2 To lr
n = Cells(i, "C")
wc = InStr(i, n, ",")
 If 0 <> wc Then
  n = Left(Cells(i, 3), wc - 1)
 Else
 End If

Then, you can change all the references to Cell(i, 3) to n
 
Upvote 0
You might use this before the Select Case:

Code:
For i = 2 To lr
n = Cells(i, "C")
wc = InStr(i, n, ",")
 If 0 <> wc Then
  n = Left(Cells(i, 3), wc - 1)
 Else
 End If

Then, you can change all the references to Cell(i, 3) to n
thanks a lot for everything
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top