"If" function and blank cells

L

lisab

I'm trying to create an If function where if the cell is equal to 0, then the
cell is populated with 1. However, I've discovered that the formula is not
ignoring blank cells. Can I add a function for it to ignore blank cells?
This is what I have so far:

=IF('Performance Analysis'!J36 =0,1,"")

Any help is appreciated!
 
J

Jacob Skaria

Try
=IF(AND('Performance Analysis'!J36<>"",'Performance Analysis'!J36=0),1,"")

If this post helps click Yes
 
T

T. Valko

=IF('Performance Analysis'!J36 =0,1,"")

Try this...

=IF('Performance Analysis'!J36="","",IF('Performance Analysis'!J36=0,1,""))
 
C

cm

try:

=IF(isblank('Performance Analysis'!J36)=true,"",if('Performance
Analysis'!J36 =0,1,""))
 
R

RagDyeR

Try:

=IF(AND(ISNUMBER(J36),J36=0),1,"")
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================


I'm trying to create an If function where if the cell is equal to 0, then
the
cell is populated with 1. However, I've discovered that the formula is not
ignoring blank cells. Can I add a function for it to ignore blank cells?
This is what I have so far:

=IF('Performance Analysis'!J36 =0,1,"")

Any help is appreciated!
 
D

David Biddulph

I doubt whether you need the "=true".
ISBLANK returns a boolean TRUE or FALSE; comparing it with TRUE will return
TRUE or FALSE respectively.

Remember, of course, that ISBLANK will not be true if the cell contains an
empty text string "".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top