How Do I Convert a Formula Result to a Text String in Excel?

Convert formula to text string with User Defined Function

  1. Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.
  2. Click Insert > Module, and paste the following macro in the Module Window. ...
  3. In a blank cell, such as Cell D2, enter a formula =ShowF(C2).

How do I convert a formula to a text string in Excel?

Convert number to text using the Excel TEXT function

  1. Add a helper column next to the column with the numbers to format. ...
  2. Enter the formula =TEXT(C2,"0") to the cell D2. ...
  3. Copy the formula across the column using the fill handle.
  4. You will see the alignment change to left in the helper column after applying the formula.

How do you copy a formula result as a text?

Press F2 (or double-click the cell) to enter the editing mode. Select the formula in the cell using the mouse, and press Ctrl + C to copy it. Select the destination cell, and press Ctl+V. This will paste the formula exactly, without changing the cell references, because the formula was copied as text.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest