Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Extract the text between last comma and last but one comma.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sreedevi - 05 Mar 2008 22:28 GMT
I have a very long text in a cell. EX:
4919,"0.019999","7.2.84.192","10.160.18.52","RTP","PT=Unknown (99), SSRC=0x0,
Seq=343, Time=514216 "

I need to extract only the Seq=343 portion of it. The length of the text is
not constant in all the rows. Also, the sequence number is sometimes 2/3/4/5
digit.

Please help
T. Valko - 05 Mar 2008 22:40 GMT
*Maybe* this:

=LEFT(MID(A1,SEARCH("seq=",A1),255),FIND(",",MID(A1,SEARCH("seq=",A1),255))-1)

Returns: Seq=343

Signature

Biff
Microsoft Excel MVP

>I have a very long text in a cell. EX:
> 4919,"0.019999","7.2.84.192","10.160.18.52","RTP","PT=Unknown (99),
[quoted text clipped - 8 lines]
>
> Please help
Dave Peterson - 05 Mar 2008 23:12 GMT
If you only want to keep the Seq=###, you could do this, too:

Select the range to fix
Edit|Replace
what:  *Seq  (asterisk, Seq)
with:  Seq
Replace all
Then
Edit|Replace
what:  ,*   (comma, asterisk)
with:  (leave blank)
replace all

The asterisk is a wildcard that represents any set of characters.

> I have a very long text in a cell. EX:
> 4919,"0.019999","7.2.84.192","10.160.18.52","RTP","PT=Unknown (99), SSRC=0x0,
[quoted text clipped - 5 lines]
>
> Please help

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.