ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Characters after the last space in a string (https://www.excelbanter.com/excel-discussion-misc-queries/450701-characters-after-last-space-string.html)

gwc

Characters after the last space in a string
 
What excel formula (not VBA or macro) will give me the characters after the last space in a string?

Examples of cell contents:

3ABN Three Angels Broadcasting Network 9393
5-MAX 5StarMAX SAP 314
BBGL Bases Loaded/Buzzer Beater/Goal Line 403
MALL Mercury 86/123/220
JTV Jewelry Television 83/227
NBC (KNBC) 4
ABC (KABC) 7

Claus Busch

Characters after the last space in a string
 
Hi,

Am Wed, 4 Mar 2015 11:32:41 -0800 (PST) schrieb gwc:

3ABN Three Angels Broadcasting Network 9393
5-MAX 5StarMAX SAP 314
BBGL Bases Loaded/Buzzer Beater/Goal Line 403
MALL Mercury 86/123/220
JTV Jewelry Television 83/227
NBC (KNBC) 4
ABC (KABC) 7


your data in column A:

=MID( A1,FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ",))))+1,99)


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional

zvkmpw

Characters after the last space in a string
 
What excel formula (not VBA or macro) will give me the
characters after the last space in a string?


Something like this might work:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),100))

gwc

Characters after the last space in a string
 
Thank both of you.


Claus Busch

Characters after the last space in a string
 
Hi,

Am Wed, 4 Mar 2015 12:05:19 -0800 (PST) schrieb gwc:

Thank both of you.


you are welcome
Here is another suggestion:
=MID(A1,MAX((MID(A1,COLUMN(1:1),1)=" ")*COLUMN(1:1))+1,99)
Insert this formula with CRTL+Shift+Enter


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com