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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty Cell shows 0 1

Status
Not open for further replies.

jatolo

MIS
Jul 17, 2006
40
US
Hi!!!
quick question.. this formula is working great the only thing is; if G36 y G37 are empty I'd like to see an empty cell instead 0.


=IF(G36>G37,"A",IF(G36<G37,"B",IF(G36=G37,"C")))

thanks...G36:G37="",""?????? iS THIS GOOD
Thanks
 



[tt]
=IF(and(isempty(G36),isempty(G37)),"",IF(G36>G37,"A",IF(G36<G37,"B",IF(G36=G37,"C"))))
[/tt]


Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
You are on the right track... try this and see if it meets your need:

Code:
=IF(G36>G37,"A",IF(G36<G37,"B",IF(G36=G37,IF(AND(G36="",G37=""),"","C"))))

Hope this helps,
Matt
 
Looks like Skip beat me to it (and with a better solution)!

I learned something too, because I did not know about the ISEMPTY function... one question for you, Skip. I am using Excel 2003 and I am able to find the ISBLANK function, which appears to do the same thing. I am unable to find ISEMPTY... is this a built in function that may have had its name changed?

By the way, star for you for introducing that function to me, whatever it is named!
 
I guess... I'm doing something wrong, It's giving the following error

##name? Why is that?
=IF(AND(isempty(G36),isempty(G37)),"",IF(G36>G37,"A",IF(G36<G37,"B",IF(G36=G37,"C"))))
 



Sorry, it should be ISBLANK instead of isempty. [blush]

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top