• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Add IF Statement to formula

Hi Lesley,

=IF(I16+(C22*I16)=0,"No Information for Select",I16+(C22*I16))

But I suggest to use custom formats to return your message when value is zero.
Me and Narayan Sir already explained in your previous thread.

Regards,
 
It a big file. If you change he duration in B13 and B21 itwill chang from havingvalues from sheet 3. to having 0. But for some reason which it is 0. is gives #value
 

Attachments

Ok, can you check the result in D18
We can not +/- with text strings, i have update your formula with substitute.

You can use the same for other(s)
 

Attachments

Hi Lesley ,

I am not able to understand what you want to do ; you have two intermediate calculations in H18 and H21 , where you have selected a font colour of WHITE so that the cell does not display anything.

These same intermediate values are used to calculate values in D18 and D21.

The formula for calculating the values in D18 and D21 can have the IF statement with the message "No information" , but why should the formulae in H18 and H21 have this ? The formula in H18 and H21 can use a value of 0 instead of a text value such as "No information" , since anyway the value in these cells is not being displayed.

Narayan
 
Back
Top