How to format numbers as text
A number that is formatted as text will be left-aligned instead of right-aligned, this makes it easier for you to spot numbers that have been incorrectly formatted as text values.
The first example shows how Excel shows a number formatted as a number. The number is aligned to the right whereas numbers formatted as text are aligned to the left in the cell.
Method 1
Instructions:
- Select a cell
- Type '
- Type the number
- Press Enter
This example is shown in the second row in the image above.
Method 2
Instructions:
- Select a cell
- Type ="number"
- Press Enter
The number is the number you want to be formatted as text. This example is shown in the third row in the image above.
Method 3
Instructions:
- Select a cell
- Type the number
- Press Enter
- Press CTRL + 1 to open the "Format Cells" dialog box.
- Make sure you are on tab "Number".
- Select Category: "Text".
- Press with left mouse button on OK button.
Number incorrectly formatted as a text value
A green arrow appears in the upper left corner of the cell if Excel believes you have a number in your worksheet that was formatted incorrectly as text.
Press with left mouse button on the exclamation button and an options menu appears.
This lets you quickly deal with the problem:
Convert to Number | Changes the formatting to a number. Value is now right-aligned. |
Help on this Error | Opens a help guide inside Excel. |
Ignore Error | Removes the green arrow, everything else remains as it is. |
Edit in formula Bar | The prompt is moved to the formula bar where you can edit the cell value. |
Error Checking Options... | Opens the "Excel Options" dialog box, see picture below. This allows you to change how Excel behaves when it comes to error values. |
If you have multiple values checked as errors you can easily remove the green arrows by selecting the cells containing the error arrow. Then press with left mouse button on the "Exclamation mark" button and lastly press with left mouse button on "Ignore error".
Excel basics category
How to make your worksheets useful? Making your sheets easy to read is a fundamental approach of creating useful worksheets. […]
Selecting cell ranges in Excel can sometimes be a real pain scrolling forever it seems. There is a quick and easy […]
This article explains how to substitute part of a formula across all cells in a worksheet. It is easier than […]
Excel categories
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.