Hi,
I would like a macro to find the postition of the last number in a string. E.g. for "hello2021today" it should give 9.
Any ideas?
Hi,
I would like a macro to find the postition of the last number in a string. E.g. for "hello2021today" it should give 9.
Any ideas?
Simple UDF.
Use in cell like
=FindLastDigit(A1)
Please Login or Register to view this content.
You say you want a macro, but it sounds more like you would want a UDF (user defined function), so that is what I am giving you (you can convert this easily enough into a macro if that is really what you want)...
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks