How to Show Dash Instead of Zero in Excel (4 Easy Methods)

We will consider this example below. Here, the dataset contains the number of different products sold over three days and their Product IDs.

Easy Methods to Show Dash Instead of Zero in Excel


Method 1 – Using the Format Cells Dialogue Box

Steps:

  • Select the dataset you want to reformat (in the sample, that’s C6:E10).

  • Press Ctrl + 1. A dialog box named Format Cells will appear.

  • Go to Accounting in the Format cells panel.
  • Select None as Symbol and press OK.

Easy Methods to Show Dash Instead of Zero in Excel

  • You’ll get a dash (-) instead of a zero throughout the cell range.

Easy Methods to Show Dash Instead of Zero in Excel


Method 2 – Defining a Custom Number Format

Steps:

  • Select the cell range and press Ctrl + 1 to open the Format Cells panel.

  • Select Custom, and in the Type section, copy and paste the following number format and then press OK.
#,##0.00;[Red]-#,##0.00;"-"

Easy Methods to Show Dash Instead of Zero in Excel

  • We will see all the zeros have been replaced by a dash.


Method 3 – Utilizing the IF Formula

In our case, we will make a helper Day 1 column under the New field.

Steps:

  • Select the cell where we will show the updated values. In our case for C6, we will show it in F6.

  • Use the following formula in the formula bar.
=IF(C6=0,"-",C6)

Easy Methods to Show Dash Instead of Zero in Excel

  • Press Enter.

Easy Methods to Show Dash Instead of Zero in Excel

  • Drag the Fill Handle to cell F10 to automatically update the rest of the cells.

  • We will see a dash inserted instead of zero in the F7 cell.

Easy Methods to Show Dash Instead of Zero in Excel

Read More: How to Find and Replace Using Formula in Excel


Method 4 – Using the Replace Feature

Steps:

  • Press Ctrl + H to open the Find and Replace dialog box.

  • Put 0 in the Find what box and a dash (–) in the Replace with box.

Easy Methods to Show Dash Instead of Zero in Excel

  • Check Match entire cell contents and click on the Find All option.

Easy Methods to Show Dash Instead of Zero in Excel

  • This will show all the cells containing the 0 value.

  • Click on Replace All.

Easy Methods to Show Dash Instead of Zero in Excel

  • We will see all the zeroes have been replaced by dashes in the datasheet.

Easy Methods to Show Dash Instead of Zero in Excel

Read More: How to Find and Replace Values in Multiple Excel Files


Things to Remember

  • In the first method, the alignment will be changed to Right and show numbers up to 2 decimal places.
  • For the other three methods, the alignment will remain the same.
  • We can repeat the IF formula method for Day 2 and Day 3 fields as well in new columns.

Download the Practice Workbook


Related Articles


<< Go Back to Find and Replace | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nasir Muhammad Munim
Nasir Muhammad Munim

Nasir Muhammad Munim has been an Excel and VBA Content Developer for over a year in Exceldemy and published more than 30 articles for the website. He is passionate about exploring new aspects of Excel and VBA. He received his Bachelor of Science in Electrical and Electronic Engineering from the Islamic University of Technology. Apart from creating Excel tutorials, he is interested in developing PostgreSQL, MySQL, and Android applications. He is fascinated by CAD-based designing systems and building... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo