Chapter 16 Custom Number Format
Chapter 16 Custom Number Format
English: Excel has many built-in formats that you can use: Currency,
Accounting, Date, Time, Percentage, etc. If you cannot find the right
format, you can create a custom number format.
For example, you might have codes that consist of 5 numbers. Instead
of typing 00041, simply type 41 and let Excel add the leading zeros.
2. Select cell A1, right click, and then click Format Cells.
3. Select Custom.
Note: Excel gives you a life preview of how the number will
be formatted (under Sample).
Result:
Note: cell A1 still contains the number 41. We only changed the
appearance of this number, not the number itself.
Decimal Places
( An Microsoft Excel Based software Application developer)
You can also control the number of decimal places. Use 0 to display
the nearest integer value. Use 0.0 for one decimal place. Use 0.00 for
two decimal places, etc.
Add Text
You can also add text to your numbers. For example, add "ft".
Large Numbers
You can also control large numbers. Use one comma (,) to display
thousands and use two commas (,,) to display millions.
1. Enter the following values in cells A1, B1, C1 and D1: 1000000,
Note: we used 0.0 for one decimal place and "M" to add the letter M.
Repeat Characters
Use the asterisk (*) followed with a character to fill a cell with that
character.
Colors
You can control positive numbers, negative numbers, zero values and
text all at the same time! Each part is separated with a semicolon (;) in
your number format code.
1. Enter the following values in cells A1, B1, C1 and A2: 5000000, 0, Hi
and -5.89.
code: [Green]$#,##0_);[Red]$(#,##0);"zero";[Blue]"Text:" @
( An Microsoft Excel Based software Application developer)
use the underscore "_" followed by a character. The length of the space
with a semicolon (;) to control positive and negative numbers only. Use
You can also control dates and times. Use one of the existing Date or
2. Select cell A1, right click, and then click Format Cells.
Note: Excel gives you a life preview of how the number will be
formatted (under Sample).
4. Select Custom.
6. Click OK.
Result:
( An Microsoft Excel Based software Application developer)
you create it. If you copy a value with a custom number format to
Contact: Vijay