Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting formula of another cell in target cell

Tags:

excel

formulas

How does one cell obtain the formula of another cell as text without using VBA? I can see this question has already been asked many times and the answer is always to write a custom function in VBA.

However, I found a post made in 2006 which claimed to have found the non-VBA solution but the link provided in that post is already broken.

like image 555
Pupper Avatar asked Feb 03 '12 00:02

Pupper


People also ask

How do you find the formula in a cell from another cell?

Going to Formulas -> Define Name, I defined two named ranges (see fig. 2), with the information shown in cells A6:B8. Enter in cell B2 =FormulaAsText . This will retrieve the formula in cell A2 as text.

How do you copy a formula from a cell to across a range of cells?

Click Home > Cut (or press Ctrl + X). Select the cell you want the formula to be in, and then click Paste (or press Ctrl + V). Verify that the cell references are still what you want. Tip: You can also right-click the cells to cut and paste the formula.

How do you return value in another cell if a cell contains certain text in Excel?

If cell contains specific text, then return a value Select the output cell, and use the following formula: =IF(cell="text", value_to_return, ""). For our example, the cell we want to check is A2, the text we're looking for is “example”, and the return value will be Yes.


1 Answers

=FormulaText(Reference) will do the trick Documentation

like image 178
Excel User Avatar answered Oct 02 '22 05:10

Excel User