Hi, You may use one of the followings for your requirement If you want use as a work sheet function you follow this formula in your worksheet =IF(SEARCH("@",A1,1)>1,"Email","Not an Email") Whereas the text "Email" and "Not an Email" are the text and it can be replaced with your own message or representation of an another cell value such as B2. If you want use this function as a VB macro you follow this If InStr(1, Cells(1, 1).Text, "@") > 1 Then 'your result goes here End If Regards Arul --- Glenda Wells <gwells@xxxxxxxxxxx> wrote: > Hi All. > I have a field in Excel that can contain either a > telephone number or an > email address. > > I want to pull information only if it is a telephone > number. > > I thought I might be able to write a little > something like if [field] > like "@" then leave null but haven't had much luck. > > Any help appreciated. /g > > ************************************************************* > You are receiving this mail because you subscribed > to mso@xxxxxxxxxxxxx or > MicrosoftOffice@xxxxxxxxxxxxxxxx > > To send mail to the group, simply address it to > mso@xxxxxxxxxxxxx > > To Unsubscribe from this group, send an email to > mso-request@xxxxxxxxxxxxx with the word > "unsubscribe" (without the quotes) in the subject > line. > > Or, visit the group's homepage and use the dropdown > menu. This will also allow you to change your email > settings to digest or vacation (no mail). > //www.freelists.org/webpage/mso > > To be able to use the files section for sharing > files with the group, send a request to > mso-moderators@xxxxxxxxxxxxx and you will be sent an > invitation with instructions. Once you are a member > of the files group, you can go here to > upload/download files: > http://www.smartgroups.com/vault/msofiles > ************************************************************* __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************