Value versus ""

Pericic

Board Regular
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>""?????

Romeo

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,"")

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)

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?

=IF(ISNUMBER(A1),A1,"")

=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.

Thanks to all...

I guess isnumber is the way to go....

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.

What about the even simpler (slightly) version of richarddec's suggestion?
=IF(A1="","",A1)

Replies
1
Views
49
Replies
5
Views
211
Replies
1
Views
138
Replies
10
Views
543
Replies
3
Views
135

1,217,682
Messages
6,137,959
Members
450,101
Latest member
Mrupe86

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.

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

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