How Do I Convert a Formula Result to a Text String in Excel?
Convert Formula to Text String with User Defined Functionhold Down the Alt + F11 Keys in Excel, and It Opens the Microsoft Visual Basic for Applications...
Convert formula to text string with User Defined Function
- Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.
- Click Insert > Module, and paste the following macro in the Module Window. ...
- 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
- Add a helper column next to the column with the numbers to format. ...
- Enter the formula =TEXT(C2,"0") to the cell D2. ...
- Copy the formula across the column using the fill handle.
- You will see the alignment change to left in the helper column after applying the formula.