Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2014, 09:52 AM
mbesspiata mbesspiata is offline Place 0 in blank cell Windows 7 64bit Place 0 in blank cell Office 2010 64bit
Advanced Beginner
Place 0 in blank cell
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default Place 0 in blank cell

I need a formula that will determine if a cell is blank and if it is, will put a 0 (zero) in that cell but if it's not blank, will leave the value as it is in that cell.
Written out it's like this:
If cell n2 is blank, enter a zero but it there is a number there, leave that number there.



Hope that explains it. I thought this would be a simple if statement but I can't get it work.

Mike
Reply With Quote
  #2  
Old 06-19-2014, 02:53 PM
gebobs gebobs is offline Place 0 in blank cell Windows 7 64bit Place 0 in blank cell Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

=if(isblank(n2),0,n2)

Of course, this will have to be in another cell. If you absolutely need it to be in n2, then I'm pretty sure that will require coding.
Reply With Quote
  #3  
Old 06-19-2014, 05:10 PM
macropod's Avatar
macropod macropod is offline Place 0 in blank cell Windows 7 32bit Place 0 in blank cell Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If you want to put 0s into blank cells:
• insert a 0 in to any cell
• copy the 0 to the clipboard
• select the destination range (even spanning cells that aren't empty, but not including cells that have formulae)
• use Paste Special>Values>Add
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 06-20-2014, 12:40 PM
Mjpunj Mjpunj is offline Place 0 in blank cell Windows 7 32bit Place 0 in blank cell Office 2010 32bit
Novice
 
Join Date: Jun 2014
Posts: 7
Mjpunj is on a distinguished road
Default

type a zero into a cell, copy it to your clip board, highlight the cells you want to replace blanks with zeros in, hit F5, click the radio button next to "blanks"; click OK, then hit CTRL+V
Reply With Quote
  #5  
Old 06-20-2014, 03:38 PM
macropod's Avatar
macropod macropod is offline Place 0 in blank cell Windows 7 32bit Place 0 in blank cell Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Mjpunj View Post
type a zero into a cell, copy it to your clip board, highlight the cells you want to replace blanks with zeros in, hit F5, click the radio button next to "blanks"; click OK, then hit CTRL+V
F5 just displays the 'Goto' box, with no radio buttons or 'blanks'. And what though have you given to the effects this has on formulae in the destination range?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 06-20-2014, 07:00 PM
Mjpunj Mjpunj is offline Place 0 in blank cell Windows 7 32bit Place 0 in blank cell Office 2010 32bit
Novice
 
Join Date: Jun 2014
Posts: 7
Mjpunj is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
F5 just displays the 'Goto' box, with no radio buttons or 'blanks'. And what though have you given to the effects this has on formulae in the destination range?
Macropod, you're correct, I did skip a step in my explanation. it should have said:
type a zero into a cell, copy it to your clip board, highlight the cells you want to replace blanks with zeros in, hit F5, Click the "Special" button, then click the radio button next to "blanks"; click OK, then hit CTRL+V

As for formulae in the destination range, if the cell is blank, it wouldn't necessarily have a formula in it. Perhaps my solution isn't the appropriate solution for the OP's scenario in that regard. It was intended to be a helpful suggestion.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Place 0 in blank cell editing a number/text at one place and changes taking place wherever it appears anurag.butoliya Word 1 06-14-2014 06:27 PM
Place 0 in blank cell VBA code to select one word from a text in a cell and place that word in next cell Shinaj Excel 2 05-01-2014 01:50 PM
Place 0 in blank cell not showing blank cell alw Excel 4 03-13-2014 01:08 PM
won't show blank cell bhum Excel 2 01-28-2014 02:34 AM
Place 0 in blank cell How can I paste cell "A1" contents to cell "B1" if cell "A1" is not blank? Learner7 Excel 1 04-25-2011 04:39 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft