{"id":241,"date":"2018-06-27T16:03:30","date_gmt":"2018-06-27T16:03:30","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=241"},"modified":"2024-03-14T13:06:38","modified_gmt":"2024-03-14T13:06:38","slug":"introduction-to-number-formatting","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/training\/introduction-to-number-formatting\/","title":{"rendered":"Number Formatting"},"content":{"rendered":"\n

If a cell is not formatted to a particular type, Excel will read that value and try to guess what format should it be. For example, if you enter the value 12<\/strong> or 2.4<\/strong>, Excel will treat this value as a decimal number. If you enter 4 1\/5<\/strong> it will be treated as a simple fraction.<\/p>\n\n\n\n

\n

Excel treats entered value as a number, only if it doesn\u2019t contain any additional characters. Otherwise, Excel will treat this value as text. For example, 5A<\/strong> will be treated as text, not as number 5<\/strong>.<\/p>\nCAUTION<\/cite><\/blockquote>\n\n\n\n

Number formats<\/h2>\n\n\n\n

In the Format Cells<\/strong> Ctrl + Shift + F<\/span><\/strong> window, in the Number<\/strong> tab, you can change data formatting by selecting one of the available predefined formats.<\/p>\n\n\n\n

General<\/h3>\n\n\n\n

When you create a new worksheet, each cell has a default cell format- General.<\/strong> All cells from a newly created worksheet will use this data type<\/a>.<\/p>\n\n\n\n

These are a few rules that characterize this type:<\/p>\n\n\n\n

    \n
  1. Excel removes leading zeroes<\/a>. Number 03.00<\/strong> will be stored as 3<\/strong>. One exception to this rule is when the value is between –1<\/strong> and 1<\/strong> (e.g. .45<\/strong> will be converted to 0.45)<\/strong>.<\/li>\n\n\n\n
  2. If the number is a decimal fraction<\/a>, then Excel displays it in a way to fit it in the cell. If the fractional part does not fit in the cell, then it is rounded. In a similar way, Excel deals with integers. When the value is long, Excel displays it in scientific notation<\/strong>. When the value is even longer it uses ###<\/strong> instead of displaying the number.<\/li>\n<\/ol>\n\n\n\n

    Example 1:<\/strong><\/p>\n\n\n\n

    The numbers in cells B2, C2,<\/strong> and D2<\/strong> are the same as the numbers in cells B3, C3, and D3.<\/strong><\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Number<\/h3>\n\n\n\n

    As the name suggests, this format is used for formatting numbers. Here, you can specify the number of decimal places so that the fractional part always stays in the same place.<\/p>\n\n\n\n

    In this type, you can also use the 1000 separator, which is useful for very large numbers.<\/p>\n\n\n\n

    Example 2:<\/strong><\/p>\n\n\n\n

    Look at the following example. Cell B2<\/strong> is formatted without, and cell B3<\/strong> with the thousands separator<\/strong>.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Currency<\/h3>\n\n\n\n

    The currency format includes the currency symbol, and the value is displayed with commas.<\/p>\n\n\n\n

    Accounting<\/h3>\n\n\n\n

    The accounting format is very similar to the currency<\/a> format. The difference is that in the accounting format, the currency sign is placed just at the left edge of the cell and not, as in the currency format near the number. Besides, in the accounting format, the space between the value and the right edge is greater than in the currency format.<\/p>\n\n\n\n

    Percentage<\/h3>\n\n\n\n

    The percentage format<\/a> converts numbers to percentages, for example:<\/p>\n\n\n\n

    1<\/strong> to 100%<\/strong><\/p>\n\n\n\n

    0.321<\/strong> to 32.1%<\/strong><\/p>\n\n\n\n

    2.12<\/strong> is 212%<\/strong><\/p>\n\n\n\n

    In the percentage format, you can set the number of decimal places.<\/p>\n\n\n\n

    Fraction<\/h3>\n\n\n\n

    With the fraction format, you can convert a number to a fraction. When you format cells to fractional type you can enter a fraction, such as 1\/3<\/strong>. Otherwise, when the cell is of the general type it will be treated not as a fraction, but as a date (January 3, 2014<\/strong> (current year)).  Therefore, in such cases, you should precede this type by using 0 at the beginning (0 1\/3<\/strong>).<\/p>\n\n\n\n

    Scientific<\/h3>\n\n\n\n

    Scientific notation displays the value in an abbreviated form. For example, the number 1234567890<\/strong> will be displayed as 1.23E+09<\/strong>. You can also set the number of decimal places<\/a> to increase precision.<\/p>\n\n\n\n

    Special<\/h3>\n\n\n\n

    This is the formatting for data, such as Zip Code, Phone Number, or Social Security Number<\/strong>.<\/p>\n\n\n\n

    Excel 365 Update<\/h2>\n\n\n\n