![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 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 |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
[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 |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 19
|
[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] |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|