Value versus ""

Pericic

Board Regular
Joined
Nov 11, 2005
Messages
204
Simple question guys, but I can't figure it out....

In Cell A1 I enter the value 0 (or any other value)

In another cell I enter the formula: =If(A1>"",A1,"")

Why is If(A1>"") FALSE ??? Isn't 0>""?????

Thanks in advance
Romeo
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
No. O denotes a numeric entry, "" denotes a Text entry.

If you are checking for the existence of a value, try:
=If(LEN(A1)>0,A1,"")
 
Upvote 0
Thanks jm14...
I''m not checking for existence of value.....
I make entries in cells and if it is anything but an empty cell (which is by default 0) I use it elsewhere....

My problem arises when my entered value happens to be 0....cannot differentiate it from cells where I didn't enter anything (default is also 0)

Your time is much appreciated..
 
Upvote 0
I''m not checking for existence of value.....

Not sure what you mean by that, because if there is a value you use it, otherwise not. Is this not checking for a value?


How about:

=IF(ISNUMBER(A1),A1,"")
 
Upvote 0
How about this:

=IF(A1<>"",A1,"")

This will display whatever is in cell A1 if that cell is not empty. Not sure what exactly your using it for, and am unsure if I even understood what you wanted. Hope this helped. I have alot of payback to do for the help I have gotten on here.
 
Upvote 0
Thanks jm14...
I''m not checking for existence of value.....
I make entries in cells and if it is anything but an empty cell (which is by default 0) I use it elsewhere....

My problem arises when my entered value happens to be 0....cannot differentiate it from cells where I didn't enter anything (default is also 0)
My response does that. It uses the Length function. An entry of zero has a length of 1, where no entry has a length of 0. So it differentiates entries of zero from no entry.
 
Upvote 0
What about the even simpler (slightly) version of richarddec's suggestion?
=IF(A1="","",A1)
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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