Custom Number Format In Excel

Last Updated :

-

Edited by :

Reviewed by :

Table Of Contents

arrow

What Is Custom Number Format In Excel?

Custom Number Format in Excel is a feature where we format the selected data values to customized numeric formats because the output of the executed formula, or the entered value in a cell, gets entered as per the default formatting of the cell.

The Excel Custom Number Format is useful as it helps users to get the right formatting of the cell value, or also to pre-set the customized numeric format before entering the desired values.

  • We can Custom Number Format in Excel by creating or customizing the existing number formats in Excel as the output cells or empty cells where we enter the values may have the default formatting of the cell.
  • When we customize the numeric format, we can highlight the results using the Format Painter or Conditional Formatting Options available in Excel.
  • We can customize format for Dates, Time, and Numeric Figures in Millions, Billions, etc.
  • We can also display only the numeric values, hide the textual values, and differentiate positive and negative values with Plus Sign and brackets, respectively.

How To Custom Format Numbers In Excel?

To make the data presentable or visually appealing, we can get Custom Number Format in the following ways, namely:

  • Using the inbuilt Number Format in Excel, or
  • Creating new numeric formats by customizing as desired.

Excel works on numbers and is based on the format we give. It shows the result.

For example, look at the below example.

In cell C1, we have the number 43473.

Custom Format Excel Example 1

As of now, the Excel format of the custom number is “General”.

Custom Format Excel Example 1-1

If we click on the drop-down list, there are several built-in number formats available here, like “Number,” “Currency,” “Accounting,” “Date,” “Short Date,” “Time,” “Percentage”, etc.

These are all predefined formatting, but we can customize all these and make the alternative number formatting, which is called “Custom Number Formatting.

How To Create A Custom Number Format In Excel? (Using Shortcut Key)

Normal formatting is available under the “Home” tab. We must right-click on the specific cell and select “Format Cells” for custom formatting.

The shortcut key to formatting, i.e., to open the Format Cells window, is Ctrl + 1.

Shortcut Key to Custom number 1

Examples

We will Custom Number Format in Excel for various cell values with specific examples.

Example #1 - Date Custom Format

It is the most common formatting we work with day in and day out.

Now, look at the below image. We have a number in cell C1.

Date Custom Format example 1

We want to display this number as a date. So, select the cell, and press Ctrl + 1.

Date Custom Format example 1-1

Next, select the “Custom” format in Excel, and type the required date format in the “Type:” field.

Date Custom Format example 1-2
  • DD means the date should be first and two digits.
  • MM means the month should be second and two digits.
  • YYYY means the year should be last and four digits.

Now, press the “Enter” key. It will show the date in the selected format, as shown below.

Date Custom Format example 1-3

Example #2 - Time Custom Format

We can customize the format of the time as well. Below are the available codes for the time format.

Time Format

If you observe the above table, we have not mentioned the code to show the minute. Unfortunately, we cannot show only the minute section since “m” & “mm” coincide with the month.

In scenarios where the time exceeds 24 hours, we mention the hours in brackets, i.e., .

Example #3 - Number Custom Format

When we work with numbers, it is very important to show the numbers to the readers. There are several ways we can show up the numbers. The codes below will help you design your number format.

Number Custom Format

Example #4 - Show Thousand Numbers in K, M, and B Format

Showing numbers in lakhs can sometimes require a lot of cell space and not fit in the report, but we can customize the number format, using the codes shown in the below image, to make it fit.

Thousand Number in K, M, B Format

Example #5 - Show Negative Numbers in Brackets & Positive Numbers with + Sign

We can display the negative numbers in brackets and positive numbers with the + sign to make them clearly comprehendible using the codes shown in the image below.

Show Negative Numbers

#6 - Show Numbers Hide Text Values

Sometimes, showing only numerical values and hiding all the text values technique is required. So, the below code can help us with this.

Numbers Hide text Values

#7 - Show Numbers with Conditional Colors

We have seen cases where we wanted to show some values in “blue” and some in “green.” By changing the number format, we can alter the font colors.

Numbers With Conditional Colors

Important Things To Note

  • Displaying huge numbers with numeric names like Millions and Billions will make the report more appealing instead of keeping track of the zeros and read them.
  • We can display different numbers in different colors too.

Frequently Asked Questions (FAQs)

1. Name different ways to open the Format cells window to Custom Number Format.

We can open the Format Cells window using the following methods, namely,

a) Use the shortcut keys to “Ctrl+1” in Windows, and “COMMAND+1” in Mac.
b) Select the “Home” tab → go to the “Number” group → click the “Number Format” option drop-down → click the “More Number Formats…” option.
c) Right-click on any cell → select the “Format Cells…” option.

2. What are some of the date codes available in Excel?

The image below shows that for the number, 43473 some of the date format codes we can apply.

Custom Number Format in Excel - FAQ 2

3. How can we highlight the Custom Number Format in Excel?

We can highlight Custom Number Format In Excel in 2 ways, namely:

a) Conditional Formatting
The Conditional Formatting in Excel is found using the following path,

First, choose the dataset → select the “Home” tab → go to the “Styles” group → click the “Conditional Formatting” option drop-down → click the “New Rule” option, as shown below.

Custom Number Format in Excel - FAQ 3a

b) Format Painter
First, select the cells with the Conditional Formatting Rule you want to copy.
Next, follow the path Home → Clipboard → Format Painter, as shown below.

Custom Number Format in Excel - FAQ 3b

Finally, apply it to the cell value to paste the Conditional Formatting. Then, the Custom Number Format, the highlight color, and everything will get automatically formatted.

Download Template

This article must help understand Custom Number Format in Excel with its formulas and examples. You can download the template here to use it instantly.