Nesting Condition: Checks A Cell Containing An Email Address

Jan 12, 2007

I'm using excel 2000

I have a formula that checks a cell containing an email address, and if the format is not the office standard, displays a message. We now allow 2 variations, and I want to check for the second condition as well.

Basically, the email address is in the format

"Firstname"."Lastname@here.com

and the formula just checks the address against a lookup of names, the only seperator being period.

I now also need to be able to check for an underscore, and I don't know how to combine the conditions.

The existing forumula is

=IF((LEFT(A2,FIND(".",A2)-1))(LEFT(E3,FIND(" ",E3)-1)),"Check Email Recipient Main Database page column BQ:BR","")

and of course the underscore is easy, too

=IF((LEFT(A3,FIND("_",A3)-1))(LEFT(E3,FIND(" ",E3)-1)),"Check Email Recipient Main Database page column BQ:BR","")

but when I try to combine them, I get an error, or at best a VALUE output.

I think I need to nest them, but maybe there is a way to combine the conditions in or use "OR" and still get the "check email" message" ??

View 9 Replies


ADVERTISEMENT

Email & Use Cell Data For Email Address

Oct 18, 2006

I need to email a page from a worksheet to a series of people and am currently using the following

Worksheets("Report").Activate
ActiveWorkbook.Save

Dim wb As Workbook
Dim strdate As String
strdate = Format(Now, "dd-mm-yy h-mm-ss")
Application. ScreenUpdating = False
ActiveSheet.Copy
Set wb = ActiveWorkbook
With wb

however, I also need the worksheet to be email to the person currently running the macro (i.e. when they email it to the others, a copy is sent to thier own inbox too), is there any way in which this can be done?

The user's email address could be formed from data in the spreadsheet, if there is an easier way to do this (i.e. email address is based on a cell in the spreadsheet).

View 3 Replies View Related

Using Macro To Find Email Address In Address Book Of Outlook

May 22, 2014

I am struggling to find a macro which can look at a name in column 'BT' and search it in the address book of Outlook to then place the email address of that person in column 'ED'

There are 35,000+ people in the address book and there may be over 5 email addresses for one name, so is there any way a message can appear for the user to select which email address is correct if there is more than 1 contact for that name?

View 1 Replies View Related

Pull Email Address Only From Cell

Jan 6, 2014

How do I pull only the email address from a cell that is like this:

annavstone22@yahoo.com,anna,stone,,,,,,,,,,,2011-10-20 17:31:08

View 1 Replies View Related

Retrieve Email Address In A Cell

Nov 18, 2012

How would one retrieve an email address in a cell if it appears randomly ?

In Cell A1, let's say the content is:

Hi My name is Peter, my email is peter@mrexcel.com

In Cell B2, let's say the content is:

Good morning, you can reach me at isabelle@yahoo.com

What I was thinking is maybe start by finding the @ with =Find("@",A1) this will give me the position of the "@".

How can I tell excel to give me the string before and after the @?

View 4 Replies View Related

Verify That An Email Address Is In A Cell

Jan 7, 2010

I want to do is have a formula that will return a result if the cell contains a full stop "." and the at symbol "@". Something like a countif contains, but I'm struggling to find a solution where it contains both symbols.

I'd like the formula to return a 1 it finds both symbols, and a zero if it doesn't find both symbols.

View 9 Replies View Related

Get Email Address From Global Address Book In Outlook

Feb 25, 2014

On a worksheet called "Contact Info" column A starting in row 2 I have a list of names (variable length). In Columns B2-D I need the email address, work phone number, and cell phone number.

View 5 Replies View Related

VBA Code To Send Email To People Whose Email Address Is In Access Table

Apr 29, 2014

I have specified the email addresses in the code to whom the email will be sent when the user presses "Send Email" button but now I want to add all the addresses in the Access table and write down the code that will send an email to those people whose addresses are in the Access table.

[Code] .....

View 5 Replies View Related

Convert Email Address In Cell Into Link?

Jul 22, 2014

I have a simlple macro to add a new customer to a list using a form. One of the columns of the datra beig added is an email address. When entering the data the email address just appears as text, but i want it to be the email address link you could click on and it opens up an outlook email. Just clicking into the cell and tabbing out changes this into the format i want, but wondering how to i get the macro to do this?

View 3 Replies View Related

Send Email Using Cell Reference For Address

Sep 12, 2012

Here is a code line that works
.To = "giordano.bruno@gmail.com"

The following is passed over by the code, but does not send an email
.To = Recip

Recip is a variable taken from a cell value and, when I hover the cursor over it, shows "giordano.bruno@gmail.com" complete with inverted commas.

View 2 Replies View Related

Pull Email Address From Text In Cell

Feb 4, 2008

I have about 5000 email addresses located in about 5000 different text areas, some of the text areas also contain 2 email addresses. How could I pull/extract the email addresses out only into its own list? Example;

The lines around the text block represent a field such as A1. Note all the text is contained in box A1.
_______________________
{ Name: Joe }
{Address: 123 Blow St } A1
{Email: Joe123@sam.net }
_____________________
{Name: Jan }
{Address: 124 Cat St } A2
{Email: J123@nbadd.net }
--------------------------
I need to just get the email addresses pulled out.

View 3 Replies View Related

Unable To Email Specific Sheet To Email Address?

Jul 3, 2013

I have the below code to email a specific sheet to an email address, however the email stays in the outbox and isn't sent. Is there something missing from the code or is it a setting issue with my email? I'm using Outlook 2010.

[Code]....

View 1 Replies View Related

Send An Automated Email To Typed In Email Address

May 20, 2008

I am trying to send an automated email by use of a "email" button. What I want it to do is to pop up a input box that will ask me who I want to send the email to, and once I hit ok it will send open up outlook and send the email. I have the code to work if I want it to be sent to a specific email address, but I can't seem to get the email address entry part to work. I will attach my code as it lays right now.

Private Sub CommandButton2_Click()'Need to reference: Microsoft Forms 2.0 Object LibrarySet OutApp = CreateObject("Outlook.Application")OutApp.Session.LogonSet OutMail = OutApp.CreateItem(0)strbody = "This is the most up to date copy of EAS Tracking 2.0 as well as the Resource Planning Sheet."attachmnt2 = "C:My DocumentsResource Planning Sheet_External.xls"On Error Resume Next'?|?|?|?|?|?|?|?|?|?|?|?|?|?|?|?|?|?|?|?|? BELOW IS WHERE I CAN'T GET TO WORK!!!With OutMailDim range As Longrange = Application.InputBox("How many copies do you want?", "Number of Copies").To = range.Subject = "This Weeks Reports".Body = strbody.Attachments.Add (attachmnt2).Display.SaveEnd With'__________________________________________________attachmnt3 = "C:My DocumentsReport DataWork Request Tracking Data FolderEAS Request 2.0.xls"On Error Resume NextWith OutMail.Subject = "This Weeks Reports".Body = strbody.Attachments.Add (attachmnt3).Display.SaveEnd .........

View 9 Replies View Related

Retrieving Cell Address Matching Condition

May 12, 2009

Been looking all day in the answered threads for an answer and no luck, so I turn to again: I need to find an address of a cell matching a condition e.g. I have a results output in varying length but having fixed block structure. I want to find the block staring address as in a Match("test", "A:A", 0).Value command but apparently its an illegal command. I’ve been thinking of a Vlookup(test,”A:A”,0,false) structure but got no idea how to make it return the address instead of a value.

View 3 Replies View Related

Send Email To Recipient Address Which Is In Cell If Cell CHANGES To True

Mar 12, 2014

If a cell changes to true i want it to send an email to the address that is in another cell,

For example if F5 CHANGES to true then send email to address in G5,

From here i can add in the subject line, and body i just cant figure out how to get it to send to a specific email address based on the cell value, and also only do it once, when it changes to TRUE rather than everytime the sheet is active, so i would require a macro to constantly be running, or run of off the cell when it changes

View 1 Replies View Related

Combining Text In Several Cells Into One Cell F To Make Email Address

Mar 10, 2014

Cell A is the first name, B is a period, C is the last name, D is an "@" and E is "yahoo.com".

I want to squeeze them all together, in order, without spaces, into cell F to make an email address.

What is the formula ?

View 5 Replies View Related

Macro That Copy Address In Cell And Send Active Sheet To That Email ID

Apr 15, 2014

Is it possible for a Macro to read a cell say D:11 and copy that email address and send the active sheet to that email?

View 9 Replies View Related

VBA Not Detecting Email Address?

Jun 20, 2014

It worked well at the time and continues to work well.

The problem I have is that I've copied it for use in a new workbook and for some reason it's not picking up email addresses and storing them in the string "stemails", so that when the email is created there are no addressees. Column BA does have email addresses in it however.

[Code] .....

View 2 Replies View Related

Extract Name From Email Address?

Jan 3, 2007

I have a list of email addresses. Most of them are in the format of: firstname.lastname@domain.com

There are about 200 of them. I wish to extract the firstname and lastname into seperate columns so i end up with:

Code:
A | B | C
--------------------------------------------------------------
Firstname | Lastname | firstname.lastname@domain.com

I am sure I came across something before that did something like this. but I was not able to find it. Any macro or script to perform this extraction.

note that some of the addresses are in the format: name@domain.com In those cases I would like just everything before the @ put into column A. I will then manually figure out how the value is to be broken up into firstname / lastname.

View 9 Replies View Related

How To Get Company Name From Email Address

Mar 18, 2012

sort out the email address as per the company name using Vlookup or any other formulae other than using text to column on "Email Adress" and then doing a Vlookup from the reference table.

Reference table:

Email AddressDomainCompanyxyz@gmail.com@gmail.comGmailabc@hotmail.com@hotmail.com
HotmailAlpha@facebook.com@facebookFacebook

Result Required

Email AddressCompanyxyz@gmail.comGmailabc@hotmail.comHotmailAlpha@facebook.comFacebook

View 2 Replies View Related

Separate Out Email Address?

Jun 18, 2012

I have a combined sentence with email address at the end. There is a space between email and other part. For example, in Cell A1, it's: PO Box 132, Washington Ave, dennis789@yahoo.com. In cell A2, it changes to: 12 DW Road, georgeyiui@hotmail.com. How can I separete these emails out?

View 7 Replies View Related

Extract Name From Email Address

Jan 3, 2007

I have a list of email addresses. Most of them are in the format of:
firstname.lastname@domain.com

There are about 200 of them. I wish to extract the firstname and lastname into seperate columns so i end up with:

A | B | C
--------------------------------------------------------------
Firstname | Lastname | firstname.lastname@domain.com
I am sure I came across something before that did something like this. but I was not able to find it. Please let me know if you can provide a macro or script to perform this extraction.

Please note that some of the addresses are in the format: name@domain.com
In those cases I would like just everything before the @ put into column A. I will then manually figure out how the value is to be broken up into firstname / lastname.

View 9 Replies View Related

Email: Reply To Address From VBA

Apr 28, 2009

I am currently trying to automate a receipt system. I have successfully managed to create an email based on calculated Excel data. The email is created using the following routine.


callref="12345"
strbody = "The main text of the email"

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)

On Error Resume Next
With OutMail
.To = "John Smith"
.BCC = ""
.Subject = "Test email receipt - " & callref
.Body = strbody
.Display 'or .Send - still developing!!!
End With
On Error GoTo 0

Set OutMail = Nothing
Set OutApp = Nothing

My problem is that there will be several people using this system so I would like to include a reply address which is different from the sender. Alternatively, I would like to send the email from a different account (but I have to assume that the users will have their own email accounts open).

View 9 Replies View Related

Turning Name Into Email Address As A Rule

May 20, 2014

Is it possible to create a rule that every time I type my name, for my e-mail address to pop up in excel instead?

For example, if I type "purple1686", I want "12purpleexample@domain.com" to show up as a hyperlink to my default e-mail program.

I am also curious if I was to write "my website" is it possible to make it a hyperlink to "www.purple1686example.com"?

Those two first may be easy to answer, so here is the challenging part for me:

Can I make that happen as a rule on every spreadsheet I open?

I don't know if I should make a template, or use a formula? The ideal scenario would be if there was a way to do it through conditional formatting.

I have used conditional formatting to change the color of a word every single time I open a new template and paste the words into it, or even by typing them out.

View 1 Replies View Related

Convert Names To Email Address?

Mar 28, 2014

I've two columns, one being the first name and the second being the last name. Is there a way that I can convert these two columns into the correct format for the email address ? Rather than having to manually do this.

View 4 Replies View Related

Importing Names And Email Address

Jun 11, 2014

I have quite a number of names & email addressees that I received by email.

I wish to import them into excel, what is the best way to do this ?

Preferably I would like the names in one column and email addys in another.

View 3 Replies View Related

Typing EMail Address Without Hyperlink

Jul 26, 2009

When I type a eMail address, such as: " myemail@hotmail.com " into any cell and then touch enter, it automatically becomes a hyperlink coloring it blue and underscored. I do not want it to be a hyperlink, for when it is a hyperlink, I have to click on remove hyperlink.

View 2 Replies View Related

Sort Email Address By Domain

Sep 24, 2007

I need to sort email address list by domain name instead of just ascending and decending,

View 9 Replies View Related

Formula To Create Email Address

Mar 21, 2007

a formula to create an email address. The person's name is in cell A1. The email addresses are all the last name + first initial followed by @ and the domain name. For instance, if name is John Doe, the email address would be doej@emaildomain.com.

The problem is, some of the names in the list contain middle initials, so I can't figure out a reliable way to discern the last name.

I know I can create a custom function in VBA using InStrRev to separate the last name, but if there is a way to do it using the functions already available in Excel, I'd rather do that.

View 9 Replies View Related

Extract Company Name From Email Address

Jan 30, 2009

I needed a useful formula in order to extract the company name from the email address I have listed in my excel worksheet, thanks for any assistance

somebody@xzycorp.com, so just want the xyz corp

anybody@abcinternational.com and abc international

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved