Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Blanks or zeros in formulas

Hi All,

Can someone please help me.

Im doing a very simple formula

=D5-C5
=D6-C6
=D7-C7 etc etc etc

But on the cells in column c or d occasionally it will be blank or "0".

Everytime one of these cells is blank or zero i get the response #VALUE

Is there a formula I can use so that instead of getting the error message



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Blanks or zeros in formulas

You should not be getting an error if the cells are truly blank or 0

If "0" then you would get the error because "0" is text, not a number.

If the cells contain formulas that return "" you will get the error

If you get an error with a blank cell, perhaps it is not really blank but
contains a <space or two.


Gord Dibben MS Excel MVP

On Thu, 21 Aug 2008 16:49:00 -0700, Dannn78
wrote:

Hi All,

Can someone please help me.

Im doing a very simple formula

=D5-C5
=D6-C6
=D7-C7 etc etc etc

But on the cells in column c or d occasionally it will be blank or "0".

Everytime one of these cells is blank or zero i get the response #VALUE

Is there a formula I can use so that instead of getting the error message



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Blanks or zeros in formulas

You didn't seem to finish your sentence, so I will guess that you want
a blank to show instead of the error message. Try this:

=IF(ISERROR(D5-C5),"",D5-C5)

Then copy this down. You could change the "" to whatever you like.

I suspect you don't have a true zero or blank in those offending cells
- more like "0" or "" to give you the #VALUE error.

Hope this helps.

Pete

On Aug 22, 12:49*am, Dannn78
wrote:
Hi All,

Can someone please help me.

Im doing a very simple formula

=D5-C5
=D6-C6
=D7-C7 etc etc etc

But on the cells in column c or d occasionally it *will be blank or "0"..

Everytime one of these cells is blank or zero i get the response #VALUE

Is there a formula I can use so that instead of getting the error message


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Blanks or zeros in formulas

If you're getting that #Value! error, that means that at least one of the two
cells (maybe both) really aren't empty.

It could contain a space character or any whitespace character.

Or it could contain a formula that evaluates to ""
like
=if(x1="ok","","Error")

Or it could have been a formula that evaluated to "" and then was converted to
values. (That cell won't be empty, but will look blank.)

I'd just select the range (a1 and/or b1) and hit the delete key to clear the
contents.

Then the cell(s) will really be empty.



Dannn78 wrote:

Hi All,

Can someone please help me.

Im doing a very simple formula

=D5-C5
=D6-C6
=D7-C7 etc etc etc

But on the cells in column c or d occasionally it will be blank or "0".

Everytime one of these cells is blank or zero i get the response #VALUE

Is there a formula I can use so that instead of getting the error message


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average not including Zeros/Blanks DaS Excel Worksheet Functions 8 October 17th 07 06:29 PM
formulas blanks vs zeros Dallasbutterfly Excel Discussion (Misc queries) 1 August 30th 07 10:52 PM
Vlookup blanks = zeros Marilyn Excel Discussion (Misc queries) 6 March 18th 07 01:21 AM
What formula is used to replace blanks in spreadsheet with zeros? Jordan Excel Worksheet Functions 3 September 14th 06 11:18 PM
Blanks chart as zeros CLR Charts and Charting in Excel 10 April 11th 05 01:38 AM


All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"