How to Convert a Number to Text with the Green Triangle in Excel (6 Methods)

What Does the Green Triangle Indicator Mean?

In case Excel detects an error in its calculation it indicates the error by displaying a triangle on the left-most side of the cell in a preset color (by default it’s Green). As a result, when we convert a number to text Excel detects it as an error and indicates it with a green triangle inside the cells.

Overview


Method 1 – Adding an Apostrophe before Numbers

  • Type an Apostrophe (‘) in front of a number (e.g., ‘1234). This indicates that the number should be treated as text.

Apostrophe 1-Convert Number to Text Green Triangle in Excel

  • Press ENTER, and you’ll see a green triangle appear in the left-most corner of the cell. The green triangle indicates that the entry has been saved as text, and Excel detects it as an error.

Green triangle

Converted

Read More: Convert Number to Text in Excel with Apostrophe


Method 2 – Using the TEXT Function and Paste Special

The syntax of the TEXT function is:

=TEXT (value, format_text)

Where,

value; is the number you want to convert.

format_text; specific format to display the value in.

The TEXT function stores the value as text. But the outcome triggers no error that’s why Excel shows no Green Triangle in resultant entries.

  •  Enter the following formula in a blank cell (e.g., E5).
=TEXT(D5,"0")

Here,

  • D5 is the reference to the numeric value you want to convert.
  • “0” specifies the desired format for displaying the value as text.

Text function-Convert Number to Text Green Triangle in Excel

  • Press ENTER and drag the fill handle to apply the formula to the entire range.

Number to text

  • After converting all entries to text, select the entire range, right-click, and choose Copy.

Copy

  • Right-click on the same range again and select Paste Special > Values. This triggers an error, and Excel displays green triangles in the cells.

Paste special

Final Result

Read More: How to Convert Number to Text without Scientific Notation in Excel


Method 3 – Using Excel’s Text to Columns Feature

  • Select the cells containing the numbers you want to convert to text.
  • Go to the Data tab and choose Text to Columns from the Data Tools section.

Text to Column-Excel Convert Number to Text Green Triangle in Excel

  • Follow the Text to Columns Wizard:
    • Keep the default selections in Step 1 of 3 and click Next.

Step 1

  • In Step 2 of 3, again keep the default selections and click Next.

Step 2

  • In Step 3 of 3, select Column data format as Text and click Finish.

Step 3

    • Text to Columns converts all number entries to text, displaying green triangles as an indication of error.

Convert number to text green triangle

Read More: Convert Number to Text with 2 Decimal Places in Excel


Method 4 – Using VBA Macro

  • Select the cells you want to convert to text.
  • Press ALT+F11 to open the Microsoft Visual Basic window.

vba-Excel Convert Number to Text Green Triangle In Excel

  • Click Insert in the toolbar and select Module.

Module

  • Paste the following macro into the module:
Sub Convert_Num_to_Text()
Dim Cells As Double
For Each cell In Selection
If Not IsEmpty(cell.Value) And IsNumeric(cell.Value) Then
Cells = cell.Value
cell.NumberFormat = "@"
cell.ClearContents
cell.Value = CStr(Cells)
End If
Next cell
End Sub

Macro

    • The macro takes cell entries from the selection and declares them as Double.
    • Then, the VBA FOR loop checks whether each cell is not empty and numeric or not.
    • Assigning cells and their format, the macro clears all the cell contents.
    • Afterward, the VBA CStr function converts cell values to strings.
  • Run the macro using the F5 key.
  • Return to the worksheet, and you’ll see that all number cells are converted to text, with Excel displaying green triangles as an indication of error.

Final result


Method 5 – Using Number Format in the Home Tab

  • Highlight the entire range.
  • Go to the Home tab and click the Number Format box icon (within the Number section).
  • Select Text from the options.

number section-Convert Number to Text Green Triangle in Excel

    • This converts numeric values to text, but Excel doesn’t display the green triangle for this type of conversion.

Number to text conversion


Method 6 – Using the Format Cells Window

  • Select the entire range.
  • Click the Font Setting icon in the Home tab.

format cells-Convert Number to Text Green Triangle in Excel

  • In the Format Cells window, go to the Number section and choose Text from the Category options.
  • Click OK

Format cells

    • All number values will be converted to text, but Excel won’t display any error tracking for this method.

Number to text conversion

Cross check


Download Excel Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Excel Convert Number to Text | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Maruf Islam
Maruf Islam

MARUF ISLAM is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a superhero tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET, and now he's switched gears, working as a content developer. In this role, he creates techy content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo