How can blank be greater than zero and therefore return TRUE?

Excel_VBA

New Member
Joined
Dec 19, 2009
Messages
42
Cell G10 has: =IFERROR(IF(H10>0,"Line",""),"")
Cell H10 has: =(IFERROR(VALUE(FIND("Contract Line Number:",A10)),"")) which evalutes to a blank or nothing.

Cell G10 returns "Line" as if the condition H10>0 is true (and H10 has a formula that evaluates to to a blank).

How can a blank be >0 ?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Cell G10 has: =IFERROR(IF(H10>0,"Line",""),"")
Cell H10 has: =(IFERROR(VALUE(FIND("Contract Line Number:",A10)),"")) which evalutes to a blank or nothing.

Cell G10 returns "Line" as if the condition H10>0 is true (and H10 has a formula that evaluates to to a blank).

How can a blank be >0 ?
A formula blank "" is an empty TEXT string. In Excel text has a higher value than any number.

="x">100000000 = TRUE
 
Upvote 0
Cell G10 has: =IFERROR(IF(H10>0,"Line",""),"")
Cell H10 has: =(IFERROR(VALUE(FIND("Contract Line Number:",A10)),"")) which evalutes to a blank or nothing.

Cell G10 returns "Line" as if the condition H10>0 is true (and H10 has a formula that evaluates to to a blank).

How can a blank be >0 ?
A couple of observations about your formulas.

1. From what I can see your H10 formula has some () that are not needed. It also doesn't require the VALUE() function since FIND() already returns a value if the text is found. This should do just as well

=IFERROR(FIND("Contract Line Number:",A10),"")

(Note also that FIND is case-sensitive. If you don't want that shange it to SEARCH)

2. Perhaps you could use this in G10

=IF(H10="","","Line")
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top