Find first period from the right

  • Thread starter Thread starter David P.
  • Start date Start date
Find first period from the right

How do I do that?

=FIND(CHAR(1),SUBSTITUTE(A1,".",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,".",""))))

It will return an error if there are no periods in the string; otherwise it
will return the position of the first period from the right (last period).
--ron
 

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