Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
gwc gwc is offline
external usenet poster
 
Posts: 62
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default 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))
  #4   Report Post  
Posted to microsoft.public.excel.misc
gwc gwc is offline
external usenet poster
 
Posts: 62
Default Characters after the last space in a string

Thank both of you.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default 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
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
Insert Leading Characters If String Is Only 7 Characters Paperback Writer Excel Discussion (Misc queries) 2 April 21st 09 09:07 PM
Put A Space Between 2 right characters carl Excel Worksheet Functions 3 April 8th 08 05:08 PM
cHARACTERS BEFORE THE SPACE T De Villiers Excel Worksheet Functions 3 January 19th 06 01:22 AM
Characters before the space T De Villiers[_8_] Excel Programming 3 January 18th 06 10:22 PM
erase all space characters into string Maileen[_2_] Excel Programming 4 January 16th 05 09:10 PM


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

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"