Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Address Book Imports

Status
Not open for further replies.

Bremmerz

MIS
Apr 10, 2002
72
GB
I've been sent an address book export from one of our of sister companies.

Unfortunately they have exported all of the e-mail address (x400, MRS, etc) as well as the SMTP address. Does anybody know a formula I could use in excel to extract only the SMTP information from the e-mail addresses field?

An examples from the export if they help...

"SMTP:John.Smith@domain.com%SNADS:DOMAIN/SMITHJO%X400:c=COM;a=DBP;p=ABC;o=COMPANY;s=Smith;g=John;i=AK;%MRS:John.Smith@MRSIN.domain.com"

I originally thought of removing the " as the text qualifier and importing the txt file in excel, using % as another deliminater, but not all records are exported as SMTP, SNADS, X400, MRS.

I've seen the SMTP address be extracted before in excel but I can't remember how it was done :(

The export holds 16,000+ records so any help is appreciated :)

TIA,

Kris


If someone annoys you, walk a mile in their shoes. That way you'll be a mile away from them, and you'll have their shoes :eek:)
 
A couple of guys answered this in the MS Office forum. If this has been a problem for anyone else, the formula in excel is:

=MID(A14,FIND("SMTP:",A14),(FIND("%",A14,FIND("SMTP:",A14))-FIND("SMTP:",A14)))

Substitute A14 for the field that the 'e-mail addresses' data is held

If someone annoys you, walk a mile in their shoes. That way you'll be a mile away from them, and you'll have their shoes :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top