Insert formula from text

FLLPE

New Member
Joined
Aug 12, 2009
Messages
2
I have a formula written as text in a cell, ie. '=10+5. This formula is in real life much longer, but just think of it as a formula. In another cell, I want to insert the text (=10+5) as a formula, and consequently get the result of the formula (15).

Indirect does not seem to do the trick...
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi

Indirect returns a range reference, not a formula. You could use an old XLM4 macro function like this (you do need to create a named formula, however, and you can't have cell references in your formula string):
Excel Workbook
GH
6=5+10+5-8*5-20
Sheet1
Excel 2003
Cell Formulas
RangeFormula
H6=eval
Excel Workbook
NameRefers To
eval=EVALUATE(INDIRECT("RC[-1]",FALSE))
Workbook Defined Names
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top