How do I write formula to conditional format using =if(and(or)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to compare the values in two cells, A1 and B1, I wish to put the
conditional formating on cell b1.

I need to determine if A1<0 and B1>0 or if A1>0 and B1<0.

If either of these two conditions occur, I need the cell of b1 to turn yellow.

I have tried using =if(and(a1<0,b1>0), =if(or(and(a1>0,b1<0), ???????

Any assistance would be appreciated.

Thanks! Don
 
This solution is so simple, yet it is brilliant and obvious. Thank you ever
so much!

Don
 
Thank you for your response. This solution did not work. Perhaps I mis
kedyed it. Another response of =A1*b1<0 did work.
Thank you for your response.

Don
 

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