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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
58,379
Office Version
  1. 365
Platform
  1. Windows
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,"")
 

Pericic

Board Regular
Joined
Nov 11, 2005
Messages
204
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..
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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,"")
 

richarddec

Board Regular
Joined
Mar 7, 2006
Messages
77

ADVERTISEMENT

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.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
58,379
Office Version
  1. 365
Platform
  1. Windows
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.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
49,512
Office Version
  1. 365
Platform
  1. Windows
What about the even simpler (slightly) version of richarddec's suggestion?
=IF(A1="","",A1)
 

Forum statistics

Threads
1,137,062
Messages
5,679,392
Members
419,825
Latest member
MegastarMagus

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
Top