Question : Manipulate cell formula without using VBA

Is it possible to get the formula of a cell instead of the value?  For example, let's say that cell A1 has =4*(10-6)-2.  Can I get the formula into another cell, so I can manipulate it using standard Excel string formulas.  I don't want to use VBA.  

Answer : Manipulate cell formula without using VBA

No, you can read it using XLM functions, but you can't enter them directly into the cell, so you have to use them in a defined name and then enter that defined name in the cell instead.

For example, define a name called GetFormula and in the Refersto box enter:

=GET.CELL(6,INDIRECT("RC[1]",0))

Now if you enter =GetFormula in a cell (note: do not use =GetFormula() or Excel will think it's a UDF; you must omit the parentheses) it will return the formula in the cell to its right.

Random Solutions  
 
programming4us programming4us