Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sixbeforedawn
 
Posts: n/a
Default Extract sub string


Hi

I need to extract the SMTP's from an Exchange export, I've been tring
to do it using MID but not having much luck

the string looks like this.

CCMAIL:secondname, firstname at
%X400:c= Country;a=
;p=domain;o=domainLON;s=secondname;g=firstname;

and what I want to extract is

can't seem to be able to start the extract at SMTP: and then end it at
%X400.

can anybody help?

TIA a newbie :)


--
sixbeforedawn
------------------------------------------------------------------------
sixbeforedawn's Profile:
http://www.excelforum.com/member.php...o&userid=28297
View this thread: http://www.excelforum.com/showthread...hreadid=478699

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Extract sub string

=MID(A1,FIND(":",A1,FIND("%SMTP:",A1)+1)+1,FIND("% ",A1,FIND("%SMTP:",A1)+1)-
FIND(":",A1,FIND("%SMTP:",A1)+1)-1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sixbeforedawn"
wrote in message
news:sixbeforedawn.1xecud_1130141128.6472@excelfor um-nospam.com...

Hi

I need to extract the SMTP's from an Exchange export, I've been tring
to do it using MID but not having much luck

the string looks like this.

CCMAIL:secondname, firstname at

%X400:c
=Country;a=
;p=domain;o=domainLON;s=secondname;g=firstname;

and what I want to extract is

can't seem to be able to start the extract at SMTP: and then end it at
%X400.

can anybody help?

TIA a newbie :)


--
sixbeforedawn
------------------------------------------------------------------------
sixbeforedawn's Profile:

http://www.excelforum.com/member.php...o&userid=28297
View this thread: http://www.excelforum.com/showthread...hreadid=478699



  #3   Report Post  
sixbeforedawn
 
Posts: n/a
Default Extract sub string


sorted it ;)


=MID(A1, SEARCH("%smtp:",A1)+6, (SEARCH("%X400",A1)-6 -
SEARCH("%SMTP:",A1)))

Cheers


--
sixbeforedawn
------------------------------------------------------------------------
sixbeforedawn's Profile: http://www.excelforum.com/member.php...o&userid=28297
View this thread: http://www.excelforum.com/showthread...hreadid=478699

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EXTRACT TEXT FROM TEXT STRING carricka Excel Worksheet Functions 4 July 8th 05 11:00 AM
Extract Part of String [email protected] Excel Worksheet Functions 1 June 9th 05 08:33 AM
Extract hyperlink string from excel cell Ryan Sapien Links and Linking in Excel 1 January 20th 05 12:24 AM
Extract % from text string Mike Excel Worksheet Functions 5 December 1st 04 08:02 PM
How do you extract numbers from a string of chacters in a cell (E. blackbeemer Excel Worksheet Functions 6 November 12th 04 09:00 AM


All times are GMT +1. The time now is 07:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"