G
Guest
Is there anyway to use the InStr function in a formula or must I create a VBA
function to do it?
Thanks,
Lee
function to do it?
Thanks,
Lee
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
....One way:
=LOOKUP(2,1/(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)="e"),
ROW(INDIRECT("1:"&LEN(A1))))
Thanks you gentlemen. I'm sorry that I asked the wrong question. I actually
need to search from the end of the string and need the InStrRev function.
Possible without code?
Lee
If you are like me you would probably go with a pass-through VBA function.
function VBAInStrRev({all the arguments to InstrRev)
VBAInStrRev = InStrRev({all the arguments to InstrRev)
end function
We'll soon hear the howls of all those who prize saving 3.141592 CPU cycles
over the loss of transparency, maintainability, and ease of understanding.
Since I am not one of them, yes, I would strongly consider use of the pass-
through function.
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.