Find n-th occurrence of a character

  • Thread starter Thread starter X-Ray
  • Start date Start date
X

X-Ray

How can I find (posistion of) the n-th (for example the second or third)
ocurrence of a specific character? The first or the last occurence is no
problem.
 
For the 3rd occurrence of n:

=FIND("^",SUBSTITUTE(A1,"n","^",3))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


| How can I find (posistion of) the n-th (for example the second or third)
| ocurrence of a specific character? The first or the last occurence is no
| problem.
|
|
 

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