I need a formula that would output something like this:
If a filename in a specific folder contains (because the filename will have an additional string after a @ character), so if a filename contains the cell value AB1 then add full filename in cell AC1.
Is that doable with VBA?
Many thanks
Sure. Here's a VBA helper function I use all the time:
I also use this one whenever I have more than one value to check for - it performs better than doing
If {check1} Or {check2} Or {check3}...
because it returns as soon as it finds a match, so{check42}
doesn't get evaluated if{check1}
returnedTrue
:Consider: