Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Extract the text between last comma and last but one comma.

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Extract the text between last comma and last but one comma.

*Maybe* this:

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

Returns: Seq=343

--
Biff
Microsoft Excel MVP


"Sreedevi" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Extract the text between last comma and last but one comma.

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.



Sreedevi wrote:

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


--

Dave Peterson
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
Comma Delimited-need comma at beginnng & end Tattoo Excel Discussion (Misc queries) 2 December 11th 07 04:39 PM
How can I extract the first & last name separated by a comma MSA Excel Discussion (Misc queries) 5 September 18th 06 03:28 PM
To only get all text after a comma Sue Excel Worksheet Functions 2 February 13th 06 10:17 AM
Extract comma broken address to cells bbc1 Excel Discussion (Misc queries) 5 February 14th 05 11:21 AM
Excel How do I create a comma delineated xls file to a comma delineated. Mark Excel Discussion (Misc queries) 0 November 26th 04 10:28 PM


All times are GMT +1. The time now is 12:19 AM.

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

About Us

"It's about Microsoft Excel"