Conditional formatting question for Excel 2010

asad

Well-known Member
Joined
Sep 9, 2008
Messages
1,434
Hello Guys,

My computer has recently been upgraded and now I have got Office 2010. I was happy until I came across a simple problem for you guys but looks like a big one for me.

I have inserted some conditional formatting in a range and it was all working fine untill I inserted one more condition. I definitely am inputing it in a wrong way, but can't figure out what's the right formula.
I am trying to insert a formula in conditional formatting and the formual is 6th out of 7 in conditional formatting window. The formual goes like this:
Code:
=or(I77=1,139,142,143,145,749)
and the pattern is cell colour to orange.
But when apply this condition and copy it to a range, all the other cell in the range change to orange colour. Why? They don't have any of the values mentioned in the formula, then why do the cells colour change to orange for them?

Any help would be greatly appreciated.

Asad
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Don't worry guys, I sorted it out. Thanks for having a look at it though.

Asad
 
Upvote 0
Hello Guys,

My computer has recently been upgraded and now I have got Office 2010. I was happy until I came across a simple problem for you guys but looks like a big one for me.

I have inserted some conditional formatting in a range and it was all working fine untill I inserted one more condition. I definitely am inputing it in a wrong way, but can't figure out what's the right formula.
I am trying to insert a formula in conditional formatting and the formual is 6th out of 7 in conditional formatting window. The formual goes like this:
=or(I77=1,139,142,143,145,749) and the pattern is cell colour to orange.
But when apply this condition and copy it to a range, all the other cell in the range change to orange colour. Why? They don't have any of the values mentioned in the formula, then why do the cells colour change to orange for them?

Any help would be greatly appreciated.

Asad

Don't worry guys, I sorted it out. Thanks for having a look at it though.

Asad
For the benefit of others that might be interested...

It's because the formula:

=OR(I77=1,139,142,143,145,749)

Will ALWAYS evaluate to TRUE.

The logical test: I77=1, will return TRUE or FALSE. Each of the other arguments will evaluate as TRUE. Any number other than 0 will evaluate as TRUE.

You can test this behavior on the worksheet.

Enter these formulas in some cells:

=OR(0)
=OR(1)
=OR(1,0)
=OR(0.000000001)
=OR(-1,0)

So, you'd want to write the connditional formatting formula like this:

=OR(I77=1,I77=139,I77=142,I77=143,I77=145,I77=749)
 
Upvote 0
Thanks Biff,

That's exactly what I did and it worked perfect. Thanks again.

Asad
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top