Replacing Zeros with Dashes in Number Formatting

In this article, we will learn how to replace Zero with dashes in Number. We use the Custom Formatting in Microsoft Excel.

Custom Format: -We can use Custom Number Format to display a Number, date as per our requirement. It’s a tool from old version of Excel when there was no Conditional Formatting option in Excel. All conditional options are performed by using Custom Number Format.

Replace Zero’s with Dashes by using Custom Format

Let’s take an example and understand how we can replace zero with dashes by using the Custom Format.

image 1

  • Select the range F6:F16 and copy by pressing the key Ctrl+C and paste in the range G6:G16 by pressing the key Ctrl+V on your keyboard

image 2

  • Select the range G6:G16 and press the key Ctrl+1 on your keyboard.
  • Format Cells dialog box will appear.

image 3

  • In the Number Tab, Click on Custom.
  • After clicking on the Custom, related options will appear.
  • In the type box, write the format to replace zero with dashes                                          _(* #,##0_);_(*(#,##0);_(* "-"??_);_(@_)

image 4


  • The function will replace the zeros in dashes by using the Custom Format.

image 5
This is the way you can bifurcate and make the large number easily readable in Microsoft Excel by using the Custom Format.


image 48


If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at



    • _(* #,##0_);[Red]_(* (#,##0);_(* "-"_);_(@_)

      Is there a way to do this and also have negative numbers display red in brackets? This is without dollar signs

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.