Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn a string formula into a "real" formula?

I have 0,4*A1 in a cell (as a string). How can convert this "string formula" into a real formula and calculate its value, in another cell?

like image 860
Cloaky Avatar asked Dec 17 '10 15:12

Cloaky


People also ask

How do I change a cell value from text to formula?

Using Keyboard Shortcut Select the cells for which you want to convert formulas to values. Copy the cells (Control + C). Paste as Values – Keyboard Shortcut – ALT + ESV.

Which Excel formula converts string values to valid cell reference?

Use the INDIRECT function in Excel to convert a text string into a valid range reference. For example, use SUM and INDIRECT. Explanation: the formula above reduces to =SUM(INDIRECT("D3:D6")). The INDIRECT function converts the text string "D3:D6" into a valid range reference.


1 Answers

Evaluate might suit:

http://www.mrexcel.com/forum/showthread.php?t=62067

Function Eval(Ref As String)     Application.Volatile     Eval = Evaluate(Ref) End Function 
like image 181
Fionnuala Avatar answered Sep 24 '22 00:09

Fionnuala