Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamhow to convert excel formula to text
To convert an Excel formula to text, use one of these methods depending on what you mean:
| Goal | Best method |
|---|---|
| Show the formula itself as text | =FORMULATEXT(A1) |
| Turn a formula into plain text in the same cell | Add an apostrophe before = |
| Convert formula result to a fixed value | Copy → Paste Special → Values |
| Convert a numeric/date result to formatted text | Use TEXT() |
| Temporarily display all formulas | Press `Ctrl + `` |
If cell A1 contains:
=SUM(B1:B10)
and you want another cell to display the formula as text, use:
=FORMULATEXT(A1)
Result:
=SUM(B1:B10)
This is useful for documentation, auditing, or checking formulas.
Important notes:
FORMULATEXT() works in Excel 2013 and later.#N/A.Example:
| Cell | Formula/content | Displayed result |
|---|---|---|
| A1 | =SUM(B1:B10) |
calculated value |
| C1 | =FORMULATEXT(A1) |
=SUM(B1:B10) |
If you want to stop Excel from calculating the formula and show it as plain text, put an apostrophe before the equals sign:
'=SUM(B1:B10)
Excel will display:
=SUM(B1:B10)
The apostrophe tells Excel: “treat this as text.”
This is best for manually converting individual formulas.
For bulk conversion:
Ctrl + H to open Find and Replace.=
'=
This changes formulas like:
=A1+B1
into text like:
'=A1+B1
Excel will display:
=A1+B1
Be careful: this disables the formulas. The cells will no longer calculate.
If you do not want the formula text, but instead want to replace the formula with its calculated result:
Ctrl + C.Example:
Original formula:
=A1+B1
If the result is 25, after Paste Special → Values, the cell contains:
25
The formula is removed.
This is the best method when you want to freeze calculated results.
If your formula produces a number or date and you want the result as text, use TEXT().
Examples:
=TEXT(A1,"0.00")
Converts a number to text with two decimal places.
=TEXT(A1,"$#,##0.00")
Converts a number to currency-formatted text.
=TEXT(A1,"yyyy-mm-dd")
Converts a date to text.
Important distinction:
=TEXT(A1,"0.00")
does not show the formula inside A1. It converts the calculated value of A1 into a text string.
If you only want to view all formulas in the worksheet:
Ctrl + `
The grave accent key is usually above Tab or below Esc on many keyboards.
You can also go to:
Formulas → Show Formulas
This does not convert anything. It only toggles the display between formula results and formulas.
Use this decision guide:
=FORMULATEXT(A1)
'=A1+B1
Copy → Paste Special → Values
=TEXT(A1,"format")
The most common solution is:
=FORMULATEXT(A1)
if you want the formula itself as text.
Use an apostrophe before the formula if you want to disable it:
'=SUM(A1:A10)
Use Paste Special → Values if you want to replace the formula with its result.