• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Delete cells with "0" values|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Delete cells with "0" values|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Delete cells with "0" values
sp_PrintTopic sp_TopicIcon
Delete cells with "0" values
Avatar
Meyanui
Member
Members
Level 0
Forum Posts: 22
Member Since:
November 9, 2016
sp_UserOfflineSmall Offline
1
December 10, 2016 - 7:29 pm
sp_Permalink sp_Print sp_EditHistory

Hi everybody

I got a sheet with plenty of data. I'll like to delete cells containing only zero (0) values. Rather than deleting manually, is there a possibility of finding and and replacing all zeros with a dash, tick or leaving the cell blank

NB  Don't delete the zeros in eg 10, 200, 50, etc but only cells whose value is a zero

 

Thank you

Meyanui

Avatar
Derek Brown
Basingstoke, United Kingdom
Member
Members
Level 0
Forum Posts: 19
Member Since:
January 18, 2015
sp_UserOfflineSmall Offline
2
December 10, 2016 - 8:23 pm
sp_Permalink sp_Print

You could hide the "zeros" with cell formatting.

For example:

#,##0.00;-#,##0.00;;

or

#,##0;[Red]-#,##0;;

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1824
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
3
December 10, 2016 - 11:08 pm
sp_Permalink sp_Print

Hi Meyanui,

Another option is to go to Excel Options>Advanced, and clear the box that says: Show a zero in cells that have zero values.

If the solutions presented does not make you happy, here is another thing you can try.

Press the following key sequences:

1. Ctrl+h (open Find-Replace window)

2. Alt+t (open Options)

3. Alt+o (check the box for : Match entire cell content)

4. Alt+n (Find field, type here a zero, or whatever you want to replace)

5. Alt+e (Replace with field, leave empty or type the replacement value)

6. Alt+i (the keyboard equivalent of Find All button)

7. Ctrl+a (this will select all cells found by Find All action)

7. Alt+F4 (close the Find-Replace window.

At this moment, all the cells with a zero are selected. Press the Delete key to clear them, or, if you want to replace all with a specific value, just type the value and press Ctrl+Enter. All selected cells will be replaced with the value you just typed.

Note that you may skip some steps, Excel will keep in memory the choices you made for "Match entire cell content" for example, for the current excel session. If this checkbox is already checked, don't press Alt+O, otherwise it will clear that box.

Understanding how to use the Alt method is important here. Probably you know that the letter that needs to be typed to go to a specific field can be found in that field name: the letter is underlined. F i nd All button has the i underlined, so Alt+i will press the Find All button.

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1824
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
4
December 14, 2016 - 2:58 pm
sp_Permalink sp_Print

Frans Visser said

Only thing is you have to be careful about what you search for. In the case Meyanui brought in, he rightly said that the 10, 200, 50 and such should be untouched. But maybe with some clever thinking you can handle that as well?  

That's why the search is performed with "Match Entire Cell content" option enabled, to avoid partial matches.

Cheers,

Catalin

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: ash seth, Les Harold, Patrick Gillan, David du Toit
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
David du Toit
leandro barbarini
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
Forum Stats:
Groups: 3
Forums: 24
Topics: 6356
Posts: 27793

 

Member Stats:
Guest Posters: 49
Members: 32325
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x