0% found this document useful (0 votes)
15 views9 pages

Custom Number Formatting in Excel

LEARN EXCEL CUSTOM NUMBER FORMAT

Uploaded by

VIVEKKUMAR118
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views9 pages

Custom Number Formatting in Excel

LEARN EXCEL CUSTOM NUMBER FORMAT

Uploaded by

VIVEKKUMAR118
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

( An Microsoft Excel Based software Application developer)

Click to learn Excel  [Link]




த�ழ் : excel இல் உள்ள inbuilt option இல்லாமல் நாம் நமக்�


ேதைவைய ெபா�த்� format ெசய்� ெகாள்ளலாம் , உதாரணத்�க்�
500 என்� type ெசய்தால் நமக்� 50 �பாய் என்� வ�மா� ெசய்யலாம்

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.

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.

1. Enter the value 41 into cell A1.

2. Select cell A1, right click, and then click Format Cells.

3. Select Custom.

4. Type the following number format code: 00000

5. Click OK.
( An Microsoft Excel Based software Application developer)

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.


( An Microsoft Excel Based software Application developer)

Decimal Places

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.

1. Enter the value 839.1274 into cell A1.

2. Use the following number format code: 0.00

Add Text

You can also add text to your numbers. For example, add "ft".

1. Enter the value 839.1274 into cell A1.

2. Use the following number format code: 0.0 "ft"

Note: remember, we only changed the appearance of this number, not

the number itself. You can still use this number in your calculations.

Large Numbers
( An Microsoft Excel Based software Application developer)

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,

2500000, 81000000 and 700000.

2. Use the following number format code: 0.0,, "M"

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.

1. Type Hi into cell A1.

2. Use the following number format code: @ *-


( An Microsoft Excel Based software Application developer)

Note: the @ symbol is used to get the text input.

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.

2. Use the following number format

code: [Green]$#,##0_);[Red]$(#,##0);"zero";[Blue]"Text:" @

Note: #,## is used to add comma's to large numbers. To add a space,

use the underscore "_" followed by a character. The length of the space

will be the length of this character. In our example, we added a

parentheses ")". As a result, the positive number lines up correctly with

the negative number enclosed in parentheses. Use two parts separated

with a semicolon (;) to control positive and negative numbers only. Use
( An Microsoft Excel Based software Application developer)

three parts separated with a semicolon (;) to control positive numbers,

negative numbers and zero values only.

Dates and Times

You can also control dates and times. Use one of the existing Date or

Time formats as a starting point.

1. Enter the value 42855 into cell A1.

2. Select cell A1, right click, and then click Format Cells.

3. Select Date and select the Long Date.


( An Microsoft Excel Based software Application developer)

Note: Excel gives you a life preview of how the number will be

formatted (under Sample).


( An Microsoft Excel Based software Application developer)

4. Select Custom.

5. Slightly change the number format code to: mm/dd/yyyy, dddd

6. Click OK.

Result:
( An Microsoft Excel Based software Application developer)

General note: a custom number format is stored in the workbook where

you create it. If you copy a value with a custom number format to

another workbook, it will also be available in that workbook.

For Application tools development Queries

Contact : Vijay

Write to : vijeemails@[Link],

Telegram / Dial to: +91 81 4727 1235

Common questions

Powered by AI

When copying data with a custom number format between Excel workbooks, the format is automatically preserved due to Excel’s internal handling. The custom format is stored within the workbook and becomes part of the data when transferred. Therefore, copying a cell or range with a specific format ensures the new workbook adapts the same formatting, maintaining consistency across documents. This feature facilitates seamless data sharing while retaining intended presentation styles .

In Excel's custom number formatting, using an asterisk (*) followed by a character fills the remaining width of the cell with that character, ensuring that values appear aligned or separated as designed. For instance, entering "Hi" in a cell and using the format code @ *- would display "Hi" followed by enough dashes (-) to fill the cell width. The "@" symbol represents the text input, directing where to place it before padding with the character .

Excel's custom number format feature allows users to display date values according to regional or user-specific formats. By selecting a date value in a cell and choosing Format Cells, users can select a predefined date format or create a custom format, such as mm/dd/yyyy, dddd. This allows for consistency in data presentation across different locales or personal preferences without altering the data itself, providing clarity and reducing errors in interpretation .

To create a custom number format that adds leading zeros, you input the number into a cell, say 41 in cell A1, right-click the cell, and select Format Cells. Choose 'Custom' and input the format code 00000. This format code ensures that the number displayed has leading zeros to make it five digits, thus displaying 00041 while keeping the actual value as 41. Excel provides a life preview in the 'Sample' section when configuring the format .

Excel can differentiate and treat positive numbers, negative numbers, zero values, and text using a single custom number format code by specifying conditions separated by semicolons (;) within the format code. For example, [Green]$#,##0_);[Red]$(#,##0);"zero";[Blue]"Text:" @ determines different appearances for positive numbers (green), negative numbers (red), zero values (literally displaying "zero"), and text (preceded by "Text:" in blue). Each condition uses style cues like colors and symbols to visually represent data types meaningfully .

To display very large numbers with a visually compressed format, you can use a format code that incorporates commas. For example, entering a number in a cell and applying the format code 0.0,, "M" will divide the number by one million and append "M" to represent millions. So, entering 81000000 would be displayed as 81.0M. This technique uses two commas to achieve the division for millions, and a "0.0" ensures one decimal place is maintained .

To display a number as currency and control its appearance, you can use a custom number format in Microsoft Excel. For instance, you can use the format code [Green]$#,##0_);[Red]$(#,##0);"zero";[Blue]"Text:" @ to manage how positive numbers, negative numbers, zero values, and text are displayed. "Green", "Red", and "Blue" specify colors for positive, negative, and text values, respectively. The underscore (_) followed by a character is used to align numbers by adding spaces, while #,##0 adds commas to large numbers .

Excel allows control over the display of decimal places by using custom number format codes. For instance, entering "0" displays the nearest integer, "0.0" displays one decimal place, and "0.00" for two decimal places. However, this format only changes how the number is displayed, not its stored value. The number remains available for calculations while its appearance can be customizable based on required precision .

You can add custom text to numerical values in Excel using a custom number format. For example, by entering 839.1274 in a cell and using the format code 0.0 "ft", the number would be displayed as "839.1 ft". This format adds the "ft" text to the number's display but keeps the original number intact for calculations. Therefore, operations can still be performed on the original numeric value .

Custom number formats in Microsoft Excel allow users to tailor the appearance of numerical data without altering the raw data itself, enhancing readability, usability, and presentation. For instance, using a custom format like [Green]$#,##0_);[Red]$(#,##0);"zero" enables users to visually distinguish financial data elements such as profits, losses, and zero amounts, aiding in rapid interpretation. This flexibility ensures functional data remains accessible for calculations while looking professional and easier to interpret in reports and presentations .

You might also like