How to convert zeros "0" into dash "-" automatically in MS Excel? (Step by Step Guide)

You might have came up with an issue in MS excel where you wanted to display dash instead of zeros but, now you don't have to manually enter dashes for every single cell.
You just have to follow these very easy steps, So that whenever you type or enter zero in a cell it becomes automatically converted into dash.

Step 1: Select the data range where you want to replace zeros with dashes.

Selecting data range where zeros are showing
Step 2: Now, Right click on the selected cells and select "Format Cells" option.
Selecting "Format Cells" option after right clicking
Step 3: In the "Format Cells" dialogue box, select "Custom" from the category list on the left
Pointing towards category "Custom" in the format cells dialogue box
Step 4: In the "Type" box enter the following format code and click "OK"


Format Code
0;0;-;@
entering the code "0;0;-;@" in the "Type" box under "Custom" category
Now, all the zeros will be converted into dashes
Data range, where zeros has been converted to dashes
Now, if you enter zero in these cells it will automatically get converted into dash
entering zero in a cell in data range to automatically convert into dash


Pointing towards cell that has been automatically converted to dash

If you still have any doubt, you can comment it down below

Popular tricks: If you want know "How to create barcodes in MS excel" then click here


Comments