Custom cell format

Excel 2016 2013 2010 2007 2003
Excel includes a variety of built-in formats that cover general, numeric, currency, percentage, exponential, date, time, and custom numeric formats. You can also design your own custom formats based on one of the built-in formats.
Format Cells example in Excel 365

To define a custom format, follow these steps:

   1.    Enter sample text for the format in a cell, and then select that cell (Excel then displays the sample text in the new format, which helps to see the effects of your changes).

   2.    Do one of the following:

  • Right-click on the selection and choose Format Cells... in the popup menu:
    Format cells in popup menu Excel 365
  • On the Home tab, in the Number group, click the launch pad icon:
    Format cells in Excel 365

   3.    On the Number tab, in the Category box, select the Custom item.

Format Cells in Excel 365

   4.    In the Type list box, select the custom format on which you want to base your new custom format. Excel displays the details for the type in the Type text box.

   5.    If the details for the type extend beyond the Type text box, double-click in the Type text box to select all of its contents, issue a Copy command (for example, press Ctrl+C), and then paste the copied text into a text editor, such as Notepad. (For a shorter type, you can work effectively in the Type text box. For a longer type, it's easier to have enough space to see the whole type at once.)

   6.    Enter the details for the four parts of the type, separating the parts from each other with a semicolon.

  • If you write two formats, the first applies to positive and zero values, and the second applies to negative values.
  • If you write three formats, the first applies to positive values, the second to negative values, and the third to zero.
  • If you write four formats, they apply to positive, negative, zero, and text values, respectively.

   7.    If you're working in a text editor, copy what you typed and paste it into the Type text box. Check the sample text to make sure it seems to be correct.

   8.    Click the OK button.

See also this tip in French: Format de cellule personnalisé.

If you have any questions or suggestions, please feel free to ask OfficeToolTips team.

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information you’ve provided to them or they’ve collected from your use of their services.

Learn more