describe
The FORMULATEXT function returns the formula as a string.
grammar
FORMULATEXT (reference)
debate
Argument | describe | Required/Optional |
---|---|---|
reference | A reference to a cell or range of cells. | Required |
Notes
-
If the referenced cell is selected, the FORMULATEXT function returns what appears in the formula bar.
-
The Reference parameter can point to another worksheet or workbook.
-
If the Reference parameter is another workbook that is not open, FORMULATEXT returns the error value #N/A.
-
If the Reference parameter is for an entire row or column, or a range containing multiple cells, or a defined name, FORMULATEXT returns the value in the upper-leftmost cell of the row, column, or range. /p>
-
In the following cases, FORMULATEXT returns the error value #N/A-
-
The cell used as the "reference" parameter does not contain a formula.
-
The formula in the cell exceeds 8192 characters.
-
For example, the formula cannot be displayed in the worksheet due to the protection of the worksheet.
-
If the Reference parameter is another workbook that is not open.
-
For example, if the Reference parameter is a cell whose formula cannot be viewed (for example, if it is protected).
-
-
Invalid data types used as input will produce a #VALUE! error value.
-
If the Reference parameter is not a valid cell reference, FORMULATEXT returns the #VALUE! error value.
-
Entering a reference to the cell in which you want to enter the function as a parameter will not cause a circular reference warning. FORMULATEXT will successfully return the formula as text in the cell.
applicability
Excel 2013,Excel 2016