priority: Conditional format vs cell style

OneLooseCrank

New Member
Joined
Feb 5, 2016
Messages
27
hi all,
I'm using a conditional format to colour a column depending on what is selected from data validation in the first row. The code for the conditional format is as follows:
=OR(T$1='KS3 HOD'!$S$4,T$1='KS3 HOD'!$U$4,T$1='KS3 HOD'!$W$4)
The format is to colour the row where the condition is met. However, I've create some custom cell styles that are symbolic to the user of the nature of the data. I would like the cell style to take priority over the conditional formatting, but this is not the case. Can anyone advise how to achieve this?
Thanks,
OLC
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Conditional Formatting always takes precedence over other formatting.
The other thing I can think of is to scrap the Conditional Formatting, and try to do something with VBA instead.
 
Upvote 0
Hi OneLooseCrank,

If the Custom cell styles could be applied using Conditional formatting then you should be able to prioritise between the two styles.

Hope this helps,

Eric.
 
Upvote 0
If the Custom cell styles could be applied using Conditional formatting then you should be able to prioritise between the two styles.
Good point!

You can have multiple Conditional Formatting conditions, and prioritize them.
So I guess the question is if this Custom Style is something that can be applied via Conditional Formatting (and if it is applied via some tangible condition).
 
Upvote 0
Well, I don't know VBA...
I am using conditional formatting to set the column colour depending on what term is selected in the first row. The term is important to a weighted average function (because it applies the weighting) and so has to be selected, but the column colour is only there to indicate visually which term the grades were recorded in - it's just a visual aid. The cell style selection is designed to indicate through colouring the cell if a student was absent when the work was set. Maybe it doesn't have to be a fill colour... Maybe it could do something else to indicate absence. Unfortunately, the cell must be left blank if the student has not submitted the work (this is because there is a custom weighted average function. Anything other than a cumulative grade will disrupt its calculation) so making the content bold or italic wouldn't work. We do not attribute an absentee as a score of zero so there will be no grade present in an absentee's cell. There are other extraneous factors to choose from in the cell style also, for instance non-submission or incomplete, so multiple styles are needed to indicate different things.
Not sure how to juggle this one.
 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,768
Members
452,668
Latest member
mrider123

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