formula does not calculate blank answer

  • Thread starter Thread starter Wanna Learn
  • Start date Start date
W

Wanna Learn

Hello

What's wrong with this formula
=IF((AO409+AP409)<0.5,(AO409+AP409),0.5),'' ",
IF(AO409+AP409)<0.5,(AO409+AP409),0.5))

I tested the formula with the first part
IF((AO409+AP409)<0.5,(AO409+AP409),0.5) and that works but when I added the
second part it does not work . THe columns have numbers but sometimes there
is text in the columns, so when there is text I want the cell to be blank
thanks
 
The syntax is wrong. Syntax is =IF(condition,true value,false value)
Your condition is (AO409+AP409)<0.5
your true value is (AO409+AP409)
your false value is 0.5.
So Excel doesn't know what you're trying to do with the rest. You have
another comma then " ", etc. and the syntax is invalid.
The whole first part can be reduced to =MIN(AO409+AP409,0.5) -- no IF
needed. If you just want blank if there's text:
=IF(COUNT(AO409:AP409)<2,"",MIN(AO409+AP409,.5))
 
The second part is obsolete since it is the same as the first


=MIN(AO409+AP409,0.5)

--


Regards,


Peo Sjoblom
 
Honestly, I cannot tell what is right with the formula. You seem to be
reqeusting to do the same IF statement twice. Please try to explain what you
are trying to do. It sounds like you are looking for a nested IF statement,
but from the first information I see, that may not be necessary.
 

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

Back
Top