Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If cell is blank

Status
Not open for further replies.

copeco

Technical User
Jun 11, 2002
31
US
Using Excel in the cell I4 , =If $H4>" ","ea"," ") ???
what I'm trying to accomplish is:
if H4 is greater than a blank then put "ea" in I4
else I4 is blank.
The above formula works only if H4 has alpha charactors. I need it to work for numbers. ???...thanks
 
Why do you have spaces between the quotations??

Try this =If $H4>"","ea","")

 
and if you want it to work with negative numbers:

=IF(H4>0,&quot;ea&quot;,IF(H4<0,&quot;ea&quot;,&quot;&quot;))
 


=If(H4=&quot;&quot;;&quot;&quot;;if(H4>,&quot;ea&quot;,&quot;&quot;)
 
or, if you want alpha numeric:

IF(H4=&quot;&quot;,&quot;&quot;,&quot;ea&quot;)
 
They all work with blanks vestax, I was just giving a bunch of options as examples.

Blue
 
Gents,
Thanks for the info. I have tried all of them, but alass, none of them seem to work. The only one that works is if a zero &quot;0&quot; is in the H4 cell. If it is blank it won't work.
Unless Vestax's... =If(H4=&quot;&quot;;&quot;&quot;;if(H4>,&quot;ea&quot;,&quot;&quot;)..may work but I keep getting a syntax after the = sign??
 
what do you have H4 and I4 formatted as, they all work fine on mine.

On Vestax's, the ; should be ,
 
Gents,
My error. For some reason it didn't work b/4.
The =IF(I6>&quot;&quot;,&quot;&quot;,&quot;ea&quot;) formula works fine. I quess I syntax erored it or something....thanks much guys!!!!!!!!!1
 
could just use;

=IF(ISBLANK(H4),&quot;ea&quot;,&quot; &quot;)

Regards,

Wray
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top