Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2014, 02:19 AM
Bobby Bobby is offline Cell with unresolved formula in has value > 0 Windows 7 64bit Cell with unresolved formula in has value > 0 Office 2007
Novice
Cell with unresolved formula in has value > 0
 
Join Date: Jul 2014
Posts: 2
Bobby is on a distinguished road
Default Cell with unresolved formula in has value > 0

Hi,



I have a sheet with =IF(B5<0,(B5*-1)/D5*F4,"") in cell H5.

There is no data in the sheet at all, and cell H5 shows as blank.

If I try and construct a formula starting If H5>0 then it shows as true.

Surely a cell with no value is not > 0?
Reply With Quote
  #2  
Old 07-04-2014, 11:06 AM
BobBridges's Avatar
BobBridges BobBridges is offline Cell with unresolved formula in has value &gt; 0 Windows 7 64bit Cell with unresolved formula in has value &gt; 0 Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I just checked to be sure, and, as you might expect, when I have nothing in X99, then X99>0 evaluates as false. So my next theory is that there's something in there already. I just discovered (thanks to your question) that a space is actually considered to be >0. So I'm thinking H5 has a space in it, or more than one.
Reply With Quote
  #3  
Old 07-10-2014, 12:27 AM
macropod's Avatar
macropod macropod is offline Cell with unresolved formula in has value &gt; 0 Windows 7 32bit Cell with unresolved formula in has value &gt; 0 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Your first formula outputs a number or null into H5. A null is not the same as no data and has a non-zero value. Accordingly, your subsequent formula needs to test for nulls (i.e. "") as well.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 07-10-2014, 11:54 AM
Bobby Bobby is offline Cell with unresolved formula in has value &gt; 0 Windows 7 64bit Cell with unresolved formula in has value &gt; 0 Office 2007
Novice
Cell with unresolved formula in has value &gt; 0
 
Join Date: Jul 2014
Posts: 2
Bobby is on a distinguished road
Default

Quote:
Originally Posted by BobBridges View Post
I just checked to be sure, and, as you might expect, when I have nothing in X99, then X99>0 evaluates as false. So my next theory is that there's something in there already. I just discovered (thanks to your question) that a space is actually considered to be >0. So I'm thinking H5 has a space in it, or more than one.

Quote:
Originally Posted by macropod View Post
Your first formula outputs a number or null into H5. A null is not the same as no data and has a non-zero value. Accordingly, your subsequent formula needs to test for nulls (i.e. "") as well.
Both quite right, nulls do appear to have 0 length though so =IF(LEN(H5)>0 works fine.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell with unresolved formula in has value &gt; 0 Formula in cell b1 using cell a1 if a1 is over certain number pumkinbug87 Excel 5 12-03-2013 12:34 PM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM
Cell with unresolved formula in has value &gt; 0 Keep cell in formula constant jprt68 Excel 1 06-26-2012 08:31 AM
Cell with unresolved formula in has value &gt; 0 need to check whether cell contains formula etodem Excel 2 10-23-2010 07:33 PM
Cell with unresolved formula in has value &gt; 0 Protect formula in cell? markg2 Excel 4 05-24-2010 11:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:46 PM.


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