#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
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] |
#4
|
|||
|
|||
Quote:
Both quite right, nulls do appear to have 0 length though so =IF(LEN(H5)>0 works fine. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Keep cell in formula constant | jprt68 | Excel | 1 | 06-26-2012 08:31 AM |
need to check whether cell contains formula | etodem | Excel | 2 | 10-23-2010 07:33 PM |
Protect formula in cell? | markg2 | Excel | 4 | 05-24-2010 11:50 AM |