email address validation

canablitz

New Member
Joined
Mar 17, 2002
Messages
19
how can i get a cell to only accept email addresses, e.g letters and or numbers, then @ then more leters and or numbers, then . three letters

please help me

BoB
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
On 2002-04-01 08:13, canablitz wrote:
how can i get a cell to only accept email addresses, e.g letters and or numbers, then @ then more leters and or numbers, then . three letters

please help me

BoB

Three possibilities:

[1] You have a preset list of e-mail addresses against which you validate the user entry, using the formula:

=COUNTIF(AdrList,B2)

where Adrlist is the name you assign to the range that houses the e-mail addresses and B2 is the cell in which the user types an address entry.

[2] You feed the entry to a mail-client and capture and evaluate the feedback from the mail client. [Hard, Requires VBA.]

[3] Check for @, which boils down to a partial validation. BTW, a . followed by a 3-letter is wrong, unless you'd refuse doe@homenet.nl as a valid address.

Aladin
 
Upvote 0
[3] Check for @, which boils down to a partial validation. BTW, a . followed by a 3-letter is wrong, unless you'd refuse doe@homenet.nl as a valid address.


how exactly do i go about doing this?

[/quote]
 
Upvote 0
On 2002-04-01 09:08, canablitz wrote:


[3] Check for @, which boils down to a partial validation. BTW, a . followed by a 3-letter is wrong, unless you'd refuse doe@homenet.nl as a valid address.

how exactly do i go about doing this?

Activate B2, supposing that B2 is the cell where the user enters an e-mail address.

Activate Data|Validation.

Choose Custom for Allow.

Enter as formula:

=AND(ISNUMBER(SEARCH("@",B2)),ISNUMBER(SEARCH(".",B2)))

Click OK.

Note. This is really a too limited validation.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,454
Members
448,898
Latest member
drewmorgan128

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