Hi,
I need a simple VBA code that finds the position of the nth ocuurence of a character in a string.
Regards,
Élio Fernandes
Hi,
I need a simple VBA code that finds the position of the nth ocuurence of a character in a string.
Regards,
Élio Fernandes
This will find the position of the 3rd "a" in A1
=FIND(CHAR(5), SUBSTITUTE(A1, "a", CHAR(5), 3))
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks