PC Review


Reply
Thread Tools Rate Thread

Blank Cell vs Cell equal to Zero (0)

 
 
LavaDude
Guest
Posts: n/a
 
      9th Sep 2005

When creating a formula, is there a way to differentiate between a blank
cell and a cell that's equal to 0?

Here's my formula:

=IF('2005 Sales'!O12>0,'2005 Sales'!O12,"")

I wanted to change this to if O12 is greater than or equal to 0, then
return O12, but I want it to return ("") if the contents of O12 is blank.
Is there a way to do this? ...

TIA!

LavaDude
 
Reply With Quote
 
 
 
 
RagDyer
Guest
Posts: n/a
 
      9th Sep 2005
What happens if O12 is *less* then zero?

This will leave O12 blank ( "" ) if less then zero:

=IF(AND(ISNUMBER(O12),O12>=0),O12,"")

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"LavaDude" <(E-Mail Removed)> wrote in message
news:Xns96CC7047AE4Amikioigtenet@216.168.3.44...
>
> When creating a formula, is there a way to differentiate between a blank
> cell and a cell that's equal to 0?
>
> Here's my formula:
>
> =IF('2005 Sales'!O12>0,'2005 Sales'!O12,"")
>
> I wanted to change this to if O12 is greater than or equal to 0, then
> return O12, but I want it to return ("") if the contents of O12 is blank.
> Is there a way to do this? ...
>
> TIA!
>
> LavaDude


 
Reply With Quote
 
Dnereb
Guest
Posts: n/a
 
      9th Sep 2005

Test for the length of the content

=IF(Len('2005 Sales'!O12)>0,'2005 Sales'!O12,""

--
Dnere

-----------------------------------------------------------------------
Dnereb's Profile: http://www.excelforum.com/member.php...fo&userid=2618
View this thread: http://www.excelforum.com/showthread.php?threadid=46639

 
Reply With Quote
 
LavaDude
Guest
Posts: n/a
 
      10th Sep 2005
"RagDyer" <(E-Mail Removed)> wrote in news:O2wqdmYtFHA.904
@tk2msftngp13.phx.gbl:

> What happens if O12 is *less* then zero?
>
> This will leave O12 blank ( "" ) if less then zero:
>
> =IF(AND(ISNUMBER(O12),O12>=0),O12,"")
>


Thanks! I'll give this a try ...

BTW, there's a formula in O12 that will not allow it to be less than zero.

Aloha!

LavaDude
 
Reply With Quote
 
LavaDude
Guest
Posts: n/a
 
      10th Sep 2005
Dnereb <(E-Mail Removed)> wrote in
news(E-Mail Removed):

>
> Test for the length of the content
>
> =IF(Len('2005 Sales'!O12)>0,'2005 Sales'!O12,"")
>
>


Thanks! This works great too! ... I eventually found "ISBLANK" to solve my
problem:

=IF(ISBLANK('2005 Sales'!O12),"",'2005 Sales'!O12)

Aloha!

LavaDude
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
when setting a cell to equal a blank cell it displays 0 BWildeRed Microsoft Excel Worksheet Functions 2 5th Jan 2010 07:04 AM
Last cell in range of formulas not equal to blank Shawn Microsoft Excel Programming 3 26th Mar 2008 12:38 PM
Start Cell B1 then find first blank cell, insert subtotal, next non blank, then next blank, sutotal cells in between......... amorrison2006@googlemail.com Microsoft Excel Programming 2 7th Jun 2007 09:27 PM
Blank (empty) cell always equal to 0?? ulfah Microsoft Excel Misc 3 1st Feb 2006 04:55 PM
make cell contents equal to null value - not blank, but empty =?Utf-8?B?bXBpZXJyZQ==?= Microsoft Excel Worksheet Functions 1 29th Dec 2004 06:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:14 AM.