?
is a special character in excel, and as far as I'm aware, won't work with =FIND("?",<stringref>)
=FIND(CHAR(63),<stringref>
) returns what I want. In my case it's 11, because the ?
character appears first, 11 characters along my string.
Now, I want CHAR(63)
to be referenced from another cell in the formula, NOT hard coded.
So let's say cell A1 has my formula, and A1 has my search item, ?
or CHAR(63)
.
How do I reference ?
or CHAR(63)
from my formula in cell A1 to return the number of characters along my string (in C1)?
Here's my attempt:
=CODE("?")
produces "63", so in theory I could use that.
A1 = FIND(B1,C1) = Value Error
B1 = CONCATENATE("CHAR(",CODE("?"),")") = CHAR(63)
C1 = somestring?someparam
I want:
A1 = 11
The problem seems to be referencing the string CHAR(63) in another cell, because it works if I embed the formula of B1 into A1.