5 Ways to Show Zero as a Dash in Google Sheets (2024)

This post is going to show you all the ways you can display your zero values as a dash or hyphen in Google Sheets.

Does the number zero appear often in your dataset, and do you want to display them in a way to differentiate them from other values?

Zero means the absence of something, but having them appear in a dataset, especially when there are quite a few, can make the dataset look unnecessarily populated and overwhelming.

There’s a trick to changing all the zeros in your worksheet, and that is to replace them with a dash. But you could use any character of your choosing to replace zeros in your spreadsheet.

In this tutorial, we will show methods you can use to display zeros in your spreadsheet as a dash character.

The methods that will be discussed are listed as follows.

  • Custom Number Formats.
  • TEXT function.
  • QUERY function.
  • IF function.
  • Find and Replace.

Get your copy of the example workbook and follow along.

Show Zero as Dash with Custom Number Formats

There are a handful of pre-set number formatting options in the spreadsheet.

When these don’t suffice you can use Custom number formats, that allow you to define a number formatting of your choice.

5 Ways to Show Zero as a Dash in Google Sheets (1)

You can access the Custom number formats feature from the Format menu.

  1. Go to the Format menu.
  2. Select Number from the options.
  3. Select Custom number format from the submenu options.
5 Ways to Show Zero as a Dash in Google Sheets (2)

After clicking on Custom number formats from the Number dropdown options, a Custom number formats dialogue box opens up.

The text box in the dialogue box allows you to pass formatting syntax to four categories of values.

  1. Positive: takes formatting instruction for positive numbers
  2. Negative: takes formatting instruction for negative numbers
  3. Zero: allows formatting instruction for the displaying of zero values.
  4. Text: allows you to pass formatting instructions for text values

The section below the text box shows you how each formatting instruction will appear. Special characters and symbols are used to pass the formatting instructions.

For example, you can use a custom number format to show values in accounting format.

To indicate the end of the formatting syntax section for a category and the beginning of another, you need to use the semi-colon character ;.

5 Ways to Show Zero as a Dash in Google Sheets (3)

When using Custom number formats, you must first select the cell or range of cells that you want to format.

5 Ways to Show Zero as a Dash in Google Sheets (4)
#,##0; [red]#,##0; -

Copy and paste the above syntax into the Custom number formats text box and click on the Apply button.

💡 Tip: You can also use custom formats to display zeros as blanks!

5 Ways to Show Zero as a Dash in Google Sheets (5)

All the zeros in your data are now represented by a dash.

📝 Note: Custom formatting allows the value to remain unchanged, it is only the way the value is displayed that changes. When you select the cell, you will still see the zero value displayed in the formula bar.

Show Zero as Dash with TEXT Function

5 Ways to Show Zero as a Dash in Google Sheets (6)

The TEXT function does exactly what its name suggests. It converts values to text format. You can also use this to apply a custom format to the text value.

= TEXT ( number, format )
  • number is where you enter the cell or cell ranges with the values you want to format.
  • format is where you pass your formatting instructions. The formatting instructions use similar symbols and characters as those used in Custom number formats. Arguments in the format section must be within double quotes "".
5 Ways to Show Zero as a Dash in Google Sheets (7)
= TEXT ( D2, "#,##0;#,##0;-" )

Select an empty cell and paste the above formula. Use the fill handle to copy the formula to the other cells.

📝 Note: The TEXT converts values to text or string. Even though you’re seeing numbers, it is a text value to Google Sheets.

The implication is that you cannot do a calculation on these numbers, which is a bit of a drawback. Use the TEXT function only if further numerical calculations are not needed.

Show Zero as Dash with QUERY Function

The QUERY function is a very powerful tool in Google Sheets that allows you to carry out various kinds of computations and data manipulation using SQL-like statements.

Check out this full guide on the QUERY function for further details.

5 Ways to Show Zero as a Dash in Google Sheets (8)
= QUERY ( data, query, [header] )
  • data is the cell range containing your data.
  • query should contain the operational command you want to carry out on your data. Everything in this argument must be surrounded by quotation marks "".
  • header defines the number of rows that are column headers. It’s an optional argument, but if left empty, the function will approximate the row with column headers. The argument takes numeric values.
5 Ways to Show Zero as a Dash in Google Sheets (9)
= QUERY ( D2:D7, "format D '#,##0; [red]#,##0; -'", 0 )

Copy and paste the above formula into your workbook. Notice the format syntax within the query is encased in single quote marks '.

📝 Note: The QUERY function keeps values as numbers even when a format is applied. You can use further numerical calculations on the results without issue.

Show Zero as Dash with IF Function

5 Ways to Show Zero as a Dash in Google Sheets (10)

The IF function allows you to return one of two values based on a logical test.

= IF ( logical_expression, value_if_true, value_if_false )
  • logical_expression this is where you define the condition that will determine what values the IF function will return. The logical expressions should return a Boolean value of either true or false.
  • value_if_true this is where you define what to return if logical_expression is true.
  • value_if_false this is where you define what to return if logical_expression is false.

When you master the IF syntax, you will find yourself using it quite often because of its adaptability to various situations.

5 Ways to Show Zero as a Dash in Google Sheets (11)

In the previous illustrations, the values in the Unsold column were already derived before changing their format. This will not be the case with the IF function.

Instead of calculating the values before changing the format, we will use the IF function to get the value and change any zero values to a dash.

5 Ways to Show Zero as a Dash in Google Sheets (12)
= IF ( B2-C2 = 0, "-", B2-C2 )

Copy and paste the above formula into an empty cell in the sheet. Drag the fill handle down the empty cells to copy the formula into them.

5 Ways to Show Zero as a Dash in Google Sheets (13)

The benefit of using the IF function in this situation is you can still do computations with the column. This is possible because the text values in the column are ignored or classified as zero, and computations are done on the numeric values.

Show Zero as Dash with Find and Replace

Find and replace is a feature that you can use to find characters and replace them with other characters.

You can use this feature to replace any zero values with a dash character.

5 Ways to Show Zero as a Dash in Google Sheets (14)

You will access the Find and replace feature in the Edit menu tab.

  1. Go to the Edit menu.
  2. Select Find and replace from the options.

You can as well use the keyboard shortcut Ctrl + H to open the Find and replace dialogue box.

5 Ways to Show Zero as a Dash in Google Sheets (15)

In the dialogue box, there are three sections of commands.

  1. Find is where you enter the character you want to be found in your spreadsheet
  2. Replace with is where you enter the replacement character
  3. Search is where you define your search parameters.
5 Ways to Show Zero as a Dash in Google Sheets (16)

The All sheets command allows you to find and replace characters anywhere it’s located in the whole spreadsheet. This sheet allows for finding and replacing characters within the active sheet, while the Specific range option allows for searches to be done with a selected range.

5 Ways to Show Zero as a Dash in Google Sheets (17)

The other sets of options are used to define how the search for the character should be performed.

Match case allows the character search to be case sensitive. If you check this box and you have an A in the Find box, the search will strictly look for an A, not a. When searching for 0 values, this won’t be relevant.

The Match entire cell contents allow Find and replace to only return cells that exactly match the Find value. For instance, if you tick this box and you search for “and”, even if other cells have the word in them, so far the cell contains other words, Find and replace will not pick up on it. Instead, it will pick up on cells that only contain the word “and”.

The Search using regular expressions allows you to run searches using special characters and symbols like the ones used when defining formatting rules in Custom number format.

The Also search within formulae option allows you to include formulas in a search.

5 Ways to Show Zero as a Dash in Google Sheets (18)

Before you can use the Find and replace feature to change zeros to dashes, you should copy and paste values a copy of your values so you don’t change the original source data.

You will also need to convert any formulas to values as the find and replace will not be able to replace zeros derived using formulas.

Select the column and use Ctrl + C to copy then select an empty cell and use Ctrl + Shift + V to paste the values.

5 Ways to Show Zero as a Dash in Google Sheets (19)
  1. Select the range of cells you want to work with. Then open the the Find and replace dialogue box.
  2. Place 0 in the Find box.
  3. Place a dash - in the Replace with box.
  4. Click on the Search option and choose Specific range.
  5. Check the square box in front of the Match entire cell content option.
  6. Click on the Replace all button.
5 Ways to Show Zero as a Dash in Google Sheets (20)

As soon as you click on Replace all, you will get notified that the replacement has taken place and it will inform you how many zeros were replaced.

You can click on Done to exit from the dialogue box.

Conclusions

Converting zeros to dashes can make your data set easier to read and there are many methods you can use to achieve this.

If you’re not expecting any changes with your data, then applying a Custom number formats or using the Find and Replace method will be the perfect option.

But the TEXT or QUERY functions can be a more sustainable option as your data expands in the future. However, the TEXT function should be avoided if you intend to use some further numerical calculations on your numbers.

Using the IF function doesn’t require an extra column to output the result of the conversion of zero to a dash.

Do you ever show your zero values as dashes or some other character? Do you use any other methods for this? Let me know in the comments below!

5 Ways to Show Zero as a Dash in Google Sheets (2024)

FAQs

How do I change zero to dash in Google Sheets? ›

To apply a custom number format to your spreadsheet:
  1. On your computer, open a spreadsheet in Google Sheets.
  2. Highlight the data you want to format.
  3. Click Format Number.
  4. Click Custom number format.
  5. Search in the menu text box to select a format. ...
  6. Click Apply.

How do you show a dash instead of 0? ›

You can press Ctrl+1, or on the Home tab, select Format > Format Cells. Select Number > General to apply the default number format, and then select OK.

How do you change a zero to a dash? ›

Converting Zeroes to Dashes Using Find and Replace
  1. Let us consider an Excel sheet where the data in the sheet is similar to the data shown in the below image. ...
  2. Then click on replace and type 0 in find what and – in replace with, then click on replace all as shown in the below image to complete our process.
Mar 7, 2023

How do you replace a dash with zero in Excel? ›

Select the range with the dashes cells you want to replace with zeros. 2. Press Ctrl + H keys simultaneously to open the Find and Replace dialog box. In this dialog box, under the Replace tab, enter – and 0 to the Find what and Replaces with boxes separately, Then click the Options button.

How to do o with a dash? ›

Typing the character

Microsoft Windows: Alt + 0 2 1 6 for Ø and Alt + 0 2 4 8 for ø. Microsoft Word: Ctrl + / o . macOS: ⌥ Option + O or ⌥ Option + o .

What is the 0 with a dash symbol? ›

The dotted or slashed zero 0̷ is a representation of the Arabic digit "0" (zero) with a slash or a dot through it.

How do you do a zero point dash? ›

Quick Guide to Zero Point Dashing

Once you've got a crystal, just double tap the jump button. Voilà, you're dashing! Keep in mind, you'll zoom forward in the direction you're facing, so aim wisely.

How do I stop 0 from disappearing in Google Sheets? ›

Click on "Format", then hover over "Number", which will raise a menu panel. At the bottom of the menu panel click on "Plain text". This won't fix existing data, but subsequent syncs will retain leading zeros.

Can you hide zeros in Google Sheets? ›

If your goal is simply to hide the 0 value, rather than replace it, you can apply a custom number format to the cells. Navigate to Custom number format using any of: Format menu > Number > Custom number format.

How do I make a zero row in Google Sheets? ›

There is no row 0 in Google Sheets. If you want to make sure that you have all items in a column just leave the numbers off, so use A:A to reference all of Column A instead of A1:A1000 which would reference A2:A1001 if you copied it elsewhere.

How to replace 0 with blanks in Google Sheets? ›

Find and Replace Blank Cells in Google Sheets (2024 Update)
  1. Step 1: Access the Find and Replace Settings. Below is a sample data set: ...
  2. Step 2: Configure Your Search. ...
  3. Step 3: Enter the Value You Want to Replace the Blank Cells With. ...
  4. Step 4: Execute the Replacement.
May 8, 2024

How do I put 0 in blank cells in sheets? ›

To replace blank cells with zero in Google Sheets, you can select the cells that you want to replace, then right-click and select 'Replace' from the drop-down menu. In the 'Find' field, select 'Blank' and in the 'Replace With' field, enter '0'. Finally, click 'Replace All' to replace the blank cells with zero.

How to get rid of 0 in Google Sheets? ›

If your goal is simply to hide the 0 value, rather than replace it, you can apply a custom number format to the cells. Navigate to Custom number format using any of: Format menu > Number > Custom number format.

How do I change significant figures in Google Sheets? ›

To modify the number of displayed decimal places for numbers in Google Sheets using menu commands, users can select the cells they wish to format and navigate to Format > Number. Here, one can select from a variety of preset formatting options that include varying decimal places.

How do I replace error 0 in Google Sheets? ›

In these cases, you can use IFERROR to return a blank or a zero instead.
  1. Type the IFERROR function, followed by the formula you want to use. ...
  2. To return a blank, you can skip the second IFERROR parameter. ...
  3. Grab the fill handle and drag it down to copy the formula.

What is the shortcut for em dash in Google Sheets? ›

After the Compose key is enabled, you can create an em dash by typing the Compose key followed by three hyphens. Alternatively, press Control+Shift+U . Let go of those keys, and then type 2014 .

Top Articles
85 Chocolate Lover's Recipes - Chef in Training
33 Essential Dip and Dipping Sauce Recipes
Bank Of America Financial Center Irvington Photos
Truist Bank Near Here
Sprinter Tyrone's Unblocked Games
Tesla Supercharger La Crosse Photos
When is streaming illegal? What you need to know about pirated content
Aries Auhsd
Infinite Campus Parent Portal Hall County
How Many Cc's Is A 96 Cubic Inch Engine
The most iconic acting lineages in cinema history
boohoo group plc Stock (BOO) - Quote London S.E.- MarketScreener
Rachel Griffin Bikini
Palm Coast Permits Online
Bing Chilling Words Romanized
Wgu Academy Phone Number
Eine Band wie ein Baum
CVS Near Me | Columbus, NE
Project, Time & Expense Tracking Software for Business
Pasco Telestaff
Certain Red Dye Nyt Crossword
Valic Eremit
Inbanithi Age
Www.craigslist.com Austin Tx
Deshuesadero El Pulpo
Piedmont Healthstream Sign In
Busch Gardens Wait Times
24 Hour Drive Thru Car Wash Near Me
Transformers Movie Wiki
Pnc Bank Routing Number Cincinnati
El agente nocturno, actores y personajes: quién es quién en la serie de Netflix The Night Agent | MAG | EL COMERCIO PERÚ
Craigslist Georgia Homes For Sale By Owner
Radical Red Doc
Hingham Police Scanner Wicked Local
Thanksgiving Point Luminaria Promo Code
MSD Animal Health Hub: Nobivac® Rabies Q & A
Jason Brewer Leaving Fox 25
Firestone Batteries Prices
Man Stuff Idaho
Who Is Responsible for Writing Obituaries After Death? | Pottstown Funeral Home & Crematory
Alpha Labs Male Enhancement – Complete Reviews And Guide
Garland County Mugshots Today
Gon Deer Forum
Vci Classified Paducah
Contico Tuff Box Replacement Locks
Displacer Cub – 5th Edition SRD
Steam Input Per Game Setting
Black Adam Showtimes Near Kerasotes Showplace 14
Myhrkohls.con
Black Adam Showtimes Near Cinemark Texarkana 14
O'reilly's Eastman Georgia
The Love Life Of Kelsey Asbille: A Comprehensive Guide To Her Relationships
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 5587

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.