Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Henrik
 
Posts: n/a
Default Search for a character subsequent to its first appearance

Hi,

The worksheet function SEARCH finds the first appearance of a character or
text string within another text string (or array of text strings). Does
anyone know a way to 'tweak' SEARCH to look for the Xth appearance of a
character. For instance, in

"Brian M. Johnson", I would like to search for the second "space" and have
my fuction return 9.

Your help is much appreciated.

  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default Search for a character subsequent to its first appearance

=SEARCH("#",SUBSTITUTE(A2," ","#",2))

Henrik wrote:
Hi,

The worksheet function SEARCH finds the first appearance of a character or
text string within another text string (or array of text strings). Does
anyone know a way to 'tweak' SEARCH to look for the Xth appearance of a
character. For instance, in

"Brian M. Johnson", I would like to search for the second "space" and have
my fuction return 9.

Your help is much appreciated.

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
Character Search. brookdale Excel Worksheet Functions 3 June 27th 05 02:39 AM
search more than one character Dolores Excel Worksheet Functions 2 May 19th 05 09:45 PM
How can I search for more than one text character in a cell? Dolores Excel Worksheet Functions 3 May 19th 05 09:44 PM
Is it possible to search for the "?" character RagDyeR Excel Worksheet Functions 1 April 9th 05 08:46 PM
Search for a specific character in a cell in an if statement mcl Excel Worksheet Functions 2 January 4th 05 09:14 PM


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