substring operations

  • Thread starter Thread starter jana
  • Start date Start date
J

jana

hi ,
is there a way to find the n'th instance of a substring in its
parent string ?

regards,
jana
 
Hi!

Do you mean that you want to know the starting position of the nth instance
of the substring?

=FIND("~",SUBSTITUTE(A1,"substring","~",instance_number))

In the formula the tilde character is used as a "marker".

If your string contains "~" tilde characters then use some other "unique"
character that IS NOT in your string.

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top