Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Extract data to the right of the last comma in a cell

TO all:

I have a cell that contains the following data:

SMD,CAP,TANT,10UF,16V/20V,10%/20%,3528

I need to return just the 3528 at the end of it. It is not always 4
characters (otherwise I would use=RIGHT(A1,4).

Any help is greatly appreciated!

Sincerely,
Doug
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Extract data to the right of the last comma in a cell

try this adjusted array-formula, supplied by Tom Ogilvy on Apr. 28,
2001:

=RIGHT(A1,LEN(A1)-MAX(IF(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=",",R OW
(INDIRECT("1:"&LEN(A1))),)))

HIH


On 12 Sty, 15:37, Huber57 wrote:
TO all:

I have a cell that contains the following data:

SMD,CAP,TANT,10UF,16V/20V,10%/20%,3528

I need to return just the 3528 at the end of it. *It is not always 4
characters (otherwise I would use=RIGHT(A1,4).

Any help is greatly appreciated!

Sincerely,
Doug


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Extract data to the right of the last comma in a cell

Perfect! Thanks much.

"Jarek Kujawa" wrote:

try this adjusted array-formula, supplied by Tom Ogilvy on Apr. 28,
2001:

=RIGHT(A1,LEN(A1)-MAX(IF(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=",",R OW
(INDIRECT("1:"&LEN(A1))),)))

HIH


On 12 Sty, 15:37, Huber57 wrote:
TO all:

I have a cell that contains the following data:

SMD,CAP,TANT,10UF,16V/20V,10%/20%,3528

I need to return just the 3528 at the end of it. It is not always 4
characters (otherwise I would use=RIGHT(A1,4).

Any help is greatly appreciated!

Sincerely,
Doug



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Extract data to the right of the last comma in a cell

Here's a regular (non array) formula solution to extract data to the
right of the last comma in a cell:

=RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1,",","*",LEN(A1)-LEN(SUBSTITUTE
(A1,",","")))))
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
how to extract caracters up to comma in excel cell jethan Excel Worksheet Functions 2 July 24th 08 01:54 PM
Extract the text between last comma and last but one comma. Sreedevi Excel Worksheet Functions 2 March 5th 08 11:12 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
How to seperate data in a cell which is split by a comma Eamonn Excel Worksheet Functions 1 March 29th 06 09:30 AM
Extract comma broken address to cells bbc1 Excel Discussion (Misc queries) 5 February 14th 05 11:21 AM


All times are GMT +1. The time now is 02:30 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"