Responses are inline:
how do I set up formula, not sure what to enter inside, for:
(error should be in 1 column, many formula's)
I have no idea what you mean.
Which formula are you asking about.
As I wrote, the formula I gave you can be entered in any cell.
So far as "error" is concerned, again, I don't know what you mean. You
asked for a formula that would return the location of a CHARACTER within
another formula. What does "error" have to do with that? (If the character(s)
are not found, the function will return a zero. If you want it to return an
error in that instance, that can be done, but you need to tell me what error
you wish to have returned).
what do the 3 items represent?
=SearchFormula(find_text,within_formula,[start])
Sorry I thought it would be obvious in the context. I used the usual method of
displaying this that is used in the Microsoft documentation for formulas. What
I wrote is similar to the documentation for the SEARCH worksheet function so I
thought you would be familiar. In any event:
find_text is the text or character(s) you are searching for
within_formula is the cell containing the formula you are searching (or it can
be just any string)
[start] is an optional argument with the same meaning as that input in the
SEARCH worksheet function. Look at HELP for details.
will give that a try.. study (on some of that not sure if which items are
variables I need to enter..)
closest had got, work without the equal sign anyways:
=LEFT(RIGHT(AX430,LEN(AX430)-38),3)
Is there a way to treat the cell as text, even though it has a formula in it?
Only by using VBA.
That is what the UDF I gave you will do. And it will also execute the SEARCH
function similar to the worksheet SEARCH function.
If you only want to change the formula in the cell into text, and not include
the SEARCH functionality then just use this UDF (although this will be less
efficient to search for a character(s) within the formula):
==============================================
Function ShowFormula(rg As Range) As String
ShowFormula = rg.Formula
End Function
============================
otherwise, dropped your code in with other script.
I don't know what that means, nor how it will affect the working of my UDF.
not sure how to set up formula to find first instance of (1st portion of
range, ie: row number) for the long formula example had supplied, do I
designate a column somehow. sorry, guesse question is will it find a first
portion of a range, that formula is "NOT" in that row:
if formula in row 429, and formula has: $AX430:$AX$1909
then circular reference error, how to find it?
Since the reference AX430:AX1909 does not include row 429, it is not clear from
what you write why you should be getting a circular reference error.
If you want to find if 430 is in your formula, you enter "430" would be
"text_to_find"
If you want to find the first set of numbers in a formula that represents a row
number, that is a very different question form wanting to find CHARACTERS
within a formula. The solution is also more complicated as it requires
differentiating numbers that are part of a cell address from numbers that
merely represent constants within a formula.
Please try to define exactly what you want to accomplish.
--ron