Conditional Formatting - Multiple Conditions

eoinymc

Board Regular
Joined
Jan 29, 2009
Messages
203
Hi,

I am using a form control combo box, which returns a number (1-13), depending on what option I've chosen.

I then have an index/match lookup for month by month results based on this...

My problem is:
2 of the options (5 & 9) are percentages, so I want to format the cells to be numbers when these two aren't chosen and percentages when they are.

So, I had two conditional format rules for this:
=or($B$5=5,$B$5=9), format as percentage
=or($B$5<>5,$B$9<>9), format as number

Whichever formatting rule is first takes precedence and even when I choose another option, the formatting of the cells do not change...

Anyone got any ideas as to why this is? Or can they give me another idea of how to get around this?

Thanks,

Eoin
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Eoin,

Seems to me that your combo box is link to cell $B$5?
If that's the case your conditional formatting shall work on the range that you selected, but not on the combo box, i.e. if you've selected range =$B$5 for your conditional formatting, try move the combo box to somewhere else and you'll see what I mean

Probably the only way to display the % for specific option(s) in combo box is having the original list appeared as %, else might need vba I guess...
 
Upvote 0

Forum statistics

Threads
1,217,380
Messages
6,136,227
Members
450,000
Latest member
jgp19

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