Hey All,
I'm wondering if someone would be able to help me with a UDF. What I'm trying to do is basically have an Excel Substitute formula that takes wildcards.
Example:
A1: example#00ff00ColorTextHere
=SubstituteWild(A1,"#??????","#??????>")
In my example, I essentially want to insert a ">" symbol after each hex color code in my string. "A1" might have several hex codes in the 1 cell, so I can't just use mid functions, I want to use substitute so it evaluates the whole string.
I'm guessing the UDF would have to find "#", and then look at the next 6 digits, store them, then replace them again with the new "format".
Ideally, making it dynamic so it can be used elsewhere would be awesome (aka, make it treat "?" as a true wildcard), but hard coding everything to always assume hex codes and 6 characters would at least get me by for this project.
Any ideas?
Thanks!
Alex
I'm wondering if someone would be able to help me with a UDF. What I'm trying to do is basically have an Excel Substitute formula that takes wildcards.
Example:
A1: example#00ff00ColorTextHere
=SubstituteWild(A1,"#??????","#??????>")
In my example, I essentially want to insert a ">" symbol after each hex color code in my string. "A1" might have several hex codes in the 1 cell, so I can't just use mid functions, I want to use substitute so it evaluates the whole string.
I'm guessing the UDF would have to find "#", and then look at the next 6 digits, store them, then replace them again with the new "format".
Ideally, making it dynamic so it can be used elsewhere would be awesome (aka, make it treat "?" as a true wildcard), but hard coding everything to always assume hex codes and 6 characters would at least get me by for this project.
Any ideas?
Thanks!
Alex