Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to extract caracters up to comma in excel cell | Excel Worksheet Functions | |||
Extract the text between last comma and last but one comma. | Excel Worksheet Functions | |||
How can I extract the first & last name separated by a comma | Excel Discussion (Misc queries) | |||
How to seperate data in a cell which is split by a comma | Excel Worksheet Functions | |||
Extract comma broken address to cells | Excel Discussion (Misc queries) |