how to create custom number format in excel

Mastering Excel: Step-by-Step Guide to Custom Number Formats

By Steven Hernandez
AD

Need to format numbers in Excel to display as currency, percentages, or with specific decimal places? Excel offers a custom number format feature that allows you to do just that. In this comprehensive guide, we'll walk you through the steps to create custom number formats in Excel, transforming your data into precisely the format you need.

Before we dive into the specifics, let's ensure you have Excel's Number tab visible. If it's not displayed, right-click the Ribbon and select 'Customize Ribbon', then check the box next to 'Number'.

Understanding the Custom Number Format Syntax

The syntax for custom number formats might initially seem complex, but it's quite intuitive once you understand the key elements. It consists of codes that define the format for Positive Values, Negative Values, Zero Values, and Text.

AD
an excel spreadsheet showing the number of columns in each column
an excel spreadsheet showing the number of columns in each column
How to Format Numbers in Excel: Beginner’s Guide
How to Format Numbers in Excel: Beginner’s Guide
Custom Number Format in Excel – Fast Number Formatting Guide
Custom Number Format in Excel – Fast Number Formatting Guide

Let's explore a simple example: '#,##0.000'. In this format:

  • # represents a digit (0-9).
  • #, separates thousands (thousands separators are bàn système-dependent).
  • 0 represents a digit or a zero. If a digit isn't present, it displays as a zero.
  • . separates the whole and fractional parts.
  • .000 specifies 3 decimal places.

Formatting Numbers with Currency Symbols

To add a currency symbol, use the $ or € code at the beginning of your custom format. For example, '$#,##0.00_ )($#,##0.00' applies a positive sign and $, removes the negative sign, and adds parentheses around negative numbers.

Custom Number Format in Excel (13 Unique Examples) - ExcelDemy
Custom Number Format in Excel (13 Unique Examples) - ExcelDemy
Combine Text with Numbers in Excel (+ video tutorial)
Combine Text with Numbers in Excel (+ video tutorial)
Excel Fill Series Formula | Auto Numbering & Smart Data Trick | Excel Tips
Excel Fill Series Formula | Auto Numbering & Smart Data Trick | Excel Tips

Here's another example: '$#,##0_);[Red]$#,##0', which applies a positive sign and $, turns negative numbers red, and adds parentheses around negative numbers.

Formatting Numbers with Percentages

To display numbers as percentages, use the 0% at the end of your format. For instance, '#,##0%'.

AD

To display a percentage change and format it as a percentage, you can use '#,##0_ ;[Red]#,##0%', which turns a negative result red to show decline.

7 Amazing Excel Custom Number Format Tricks (you Must know)
7 Amazing Excel Custom Number Format Tricks (you Must know)
Custom number formatting in Excel 🎨
Custom number formatting in Excel 🎨
Excel Number Formatting Shortcuts for Accountants: Save Time & Work Faster
Excel Number Formatting Shortcuts for Accountants: Save Time & Work Faster
Spelling numbers in Excel
Spelling numbers in Excel
Create Custom Symbols in Excel based on Numbers | MyExcelOnline
Create Custom Symbols in Excel based on Numbers | MyExcelOnline
How to Convert Numbers to Text Fast in Excel | MyExcelOnline
How to Convert Numbers to Text Fast in Excel | MyExcelOnline

Applying Custom Number Formats

Now that you know the basic syntax, let's apply it to your Excel worksheet.

First, select the cells you want to format. To apply the custom format:

AD
  1. Right-click the selected cells and choose 'Format Cells'.
  2. In the dialog box, click the 'Number' tab.
  3. In the 'Category' section, choose 'Custom'.
  4. In the 'Type' field, enter your desired custom format.
  5. Click 'OK'.

Applying Custom Number Formats Selectively

You can also apply custom formats selectively:

Convert Numbers to Text in Excel: Step-by-Step Tutorial | MyExcelOnline
Convert Numbers to Text in Excel: Step-by-Step Tutorial | MyExcelOnline
Excel Number Format (from Toolbar, Ribbon and Dialog Box) - ExcelDemy
Excel Number Format (from Toolbar, Ribbon and Dialog Box) - ExcelDemy
How to Apply Excel Number Format in Thousands with Comma - ExcelDemy
How to Apply Excel Number Format in Thousands with Comma - ExcelDemy
  1. Click on the cell with the custom format you want to reuse.
  2. Copy the cell and paste it into the new cell(s).

The custom format will be applied, but as plain text, which you can then format as desired. Additionally, if you copy and paste the entire range while holding the 'Ctrl' key, the custom formats will be pasted as they appear.

Once you've mastered custom number formats in Excel, you can create almost any numeric display you need, improving the readability and professionalism of your spreadsheets.

AD

As you venture further into advanced Excel functions and formulas, remember this crucial skill. Happy formatting and refining your data presentations!

AD