IF then problem for beginner

  • Thread starter Thread starter dave
  • Start date Start date
D

dave

I have five cells that show
6.03% 3% 3% -0.07% and 7440

If any of the first four cells contain a negative number,
how would I display "warning" in the fifth cell instead
of 7440
 
Try this:

=if(d2<0,"Warning","")

The "" will make the cell blank if d2 is greater than 0.

Regards
BW
 
My appologies I didn't read you post thoughly enough

Try this:

=IF(A5<0,"Warning",IF(B5<0,"Warning",IF(C5<0,"Warning",IF(D5<0,"Warning",""))))

Regards,
BW
 
A couple more possibilities:

=IF(OR(A5<0, B5<0, C5<0, D5<0), "Warning,"")

Or this array formula (Use Ctrl-Shift-Enter)

=IF(OR(A5:D5<0),"warning","")
 

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