Skip to main content

How to convert zeroes to dashes in Excel?

If you have a range of values which populated with some zeroes, and now you want to convert theses zeroes to dashes in your data range. How could you change all the zeroes to dashes at once in Excel?


Convert zeroes to dashes with Format Cells function

In Excel, the Format Cells function can help you to complete this task.

1. Select the data range that you want to change the zeroes to dashes, right click, and choose Format Cells from the context menu, see screenshot:

2. In the Format Cells dialog box, under Number tab, click Custom from the Category list, and enter 0;-0;—;@ into the Type text box. See screenshot:

3. And then click OK, all zeroes have been replaced by dashes in the original range. See screenshot:

Easily select all zeros with an amazing tool, and then convert them to dashes in bulk

With cool Select Specific Cells feature of Kutools for Excel, you can easily select all cell equal to a given number in Excel, such as all cells equal to 0. After selecting these zero cells, you can convert them in bulk to dashes with Ctrl + Enter keys.


Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now

Convert zeros to dashes with Replace feature

You can also apply the Replace feature to solidly convert all zeros to dashes in bulk.

1. Click Home > Find & Select > Replace to enable the Find and Replace dialog.

Notes:
(1) To convert zeros to dashes in a certain selection, please select the range firstly, and then enable the Find and Replace dialog;
(2) You can also press Ctrl + H keys together to open the Find and Replace dialog.

2. In the Find and Replace dialog, please do as follows:
(1) Type 0 in the Find what box;
(2) Type dashes in the Replace with box;
(3) Click Options >> button to expand more replace options, and check the Match entire cell contents option;

3. Click the Replace All button.

4. And then a dialog box comes out and shows you how many replacements it has taken. Click the OK button to close it.

And then you will see all zeros in the whole worksheet (or the specified range if you have selected) have been converted to dashes.


Convert zeroes to dashes with Kutools for Excel

If you have installed Kutools for Excel, its Select Specific Cells feature can help you to select all zeroes cells first, and then convert all zeroes to dashes immediately.

Kutools for Excel- Includes more than 300 handy tools for Excel. Full feature free trial 60-day, no credit card required! Get It Now

1. Select the range that you want to convert zeroes to dashes, and click Kutools > Select > Select Specific Cells, see screenshot:

2. In the Select Specific Cells dialog box, click Cell option, choose Equals from the Specific type drop down list, enter 0 into the text box, and click the Ok button. See screenshot:

3. Now all zeros are selected. Then enter the – dash symbol in the formula bar, and press Ctrl + Enter keys together. Then all zeroes have been converted to dashes, see screenshot:

Click to know more about this Select Specific Cells feature.


Demo: Convert zeroes to dashes in Excel

Kutools for Excel includes more than 300 handy tools for Excel, free to try without limitation in 30 days. Free Trial Now!      Buy Now!


Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
but.. how to make -0123 man? after enter it, it always be -123 and that's horrible. the -0 always GONE. please make a tutorial for that.
This comment was minimized by the moderator on the site
Hi Billy,
If the cell with the special number won’t be calculated, you can format the cell as text formatting (Home > Number Format > Text), and then type the special number with minus sign and beginning zeros.
This comment was minimized by the moderator on the site
Thanks for this info! Very helpful!
This comment was minimized by the moderator on the site
He seguido probando... y creo que sería este, por si a alguien le interesa: #.#00€; -#.#00€; -; @
This comment was minimized by the moderator on the site
Esta formula funcionó perfectamente, mil gracias Carolina!
This comment was minimized by the moderator on the site
Hola, tengo una duda, quiero hacer esto mismo, de sustituir 0s por guiones, y me funciona perfecto con formato personalizado siguiendo las instrucciones de arriba, sin embargo querría que si no es un 0, que lo mostrase como moneda con €. Qué debo introducir para que aplique los dos? Muchas gracias!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations