Highlighting cells in excel based on complex conditions - excel

I am trying to do nested conditioned formatting.
Here is an example to explain: I have three tables, each of them is highlighted (green, or red) based on some condition. In each table, the red highlighting is specific to the rows "LASSO", while the green highlighting is for the row "Stepwise".
Now, I would like to highlight in blue the column names (VAL, EQ, EFF, SIZE, ..) if the cells in corresponding columns are highlighted in each table in both green and red.
Example: MOM is highlighted in the 3 tables, and is highlighted in every table in both green and red (i.e. for both LASSO and Stepwise). In this case, I want to highlight the the cells F2,F9 and F16 in blue.
Then, I would like to highlight in purple the column names (VAL, EQ, EFF, SIZE, ..) if the cells in corresponding columns are highlighted in each table in green OR red.
Example: UMP is highlighted in all tables, but not in green and red in every table (as you see, in table 1, it is only highlighted in red, not green). In this case, I want to highlight the cells K2,K9 and K16 in blue.
This is what I am looking for:
I apologize if the explanation is a bit confusing. I am ready to give further details/examples if needed.
Thank you,

Something along the following lines should suit:
applied to Row1 and then copied to rows 9 and 16 with Format Painter.
The actual components within the =AND will depend upon the trigger points for the existing green and red formatting.
Edit: Image for "applied to Row1":
It is however never a good idea to apply conditional formatting to more cells than really necessary (say ~ currently required + a reasonable margin for any future growth) because such formats are highly volatile.

Related

Excel: Conditional Formatting to highlight specific row based on what is below it

I have an excel issue that I cant quite find a solution for after a few days of searching and trying.
I have a very large excel sheet that is has blocks of data that are only divided by a bottom border for the end of the block. Specifically the cell that contains SECONDARY as the value (or row 7 in this example), with the row below it being the start of the next block, hence the blank description.
I have conditional formatting set to highlight 4040 in one color. I also have formatting set to highlight 0047, 0620, 0050, 0056, 0053, and 0623 in another color as these are all the same and have the same description.
With that I manually highlight Row 1 of the block in blue if it has both 4040 and one of or all 0047 through 0623. Otherwise if it only has 4040 I highlight Row 1 of that block in green. If it has any of 0047-0623, I highlight it in red..
I dont want to manually scroll through the sheet looking for either color then manually highlighting the beginning block (row 8 in this case), thats what Im looking to solve but am struggling to find something to do that.
Here is an image example of what im trying to do.
Block contains orange and yellow, the first row gets highlighted in
blue.
Block contains just yellow, highlight first row in red.
Block contains just orange, highlight first row in green.
Hopefully someone has an idea of how I can create something that goes through the sheet and highlights the first row of the block for me depending on what is in it.
You can't base conditional formatting on another colour, but you can base it on a formula, as you can see in following screenshot:
The two formulas are (defined for cell "B2", and then applied everywhere):
=$B3=4040 (colour red) Stop when true : X
=$B2=4040 (colour yellow)
So, the following happens:
When the next line (fix column "B", hence $B) is 4040, the line become red. Do nothing more.
When the line itself (fix column "B", ...) is 4040, the line becomes yellow.

Multi color cell formatting

I am trying to have a column of cells fill with one of 3 colors based on it's value in relation to another cell or the sum of other cells.
Column A, Column B and Column C. Column A is the colored column.
A to be green if A is greater than B
A to be orange if A is less than B but A+C is greater than B
A to be red if A is less B and less than A+C.
I have tried using standard fill of green with also conditional formatting "use a formula to determine which cells to format 2 color scale but have been unsuccessful.
I appreciate any help you may give.
It is really straightforward, but you need to realise that you can have different rules within conditional formatting. Let me show you in a screenshot (sorry for the Dutch, "Celwaarde" means "cell value"):
In order to create one rule, you might do it as follows (use the second option):

Conditionally Formatting A School Markbook Using VLOOKUP

I'm looking for a faster way to format my Excel spreadsheet. I have a large spreadsheet with 200 students' test and homework data on it. I need the cells in the sheet to individually colour code their efforts (red, yellow, green) depending on if they hit their target grade. I currently use three rules and copy those rules for every child with the same target grade. It takes ages and if a child's target changes, I have to faff with the formatting too. I need all the cells from H5:AM27 to format in reference to the score in column F. If they are on or above it, green. 3 marks or less below it, yellow, more than 3 marks below, red.
I know there's a way to do it using a VLOOKUP table but I can't find a concise explanation of what my lookup table needs to look like in order for it to work...
Anyone offer any suggestions?
Select cells H5:AM27
Go to Home -> Conditional Formatting -> New Rule -> Use a formula
Set the "highlight green" formula to =AND(H5<>"",H5>=$F5)
Repeat steps 1 and 2
Set the "highlight yellow" formula to =AND(H5<>"",H5>=$F5-3,H5<$F5)
Repeat steps 1 and 2
Set the "highlight red" formula to =AND(H5<>"",H5<$F5-3)

Gradient fill conditional upon number of instances of specific text

I'm trying to use a header row for conditional formatting that shows a gradient (stronger colour of red) depending on how many occurrences of text are in the cells in each column. For example, if there are two instances of text in the column below, the top header row cell will be a lighter shade of red. If there were 20 instances of text in the column below, the top header row cell would be a darker shade of red.
Does someone have a straight forward way of making this work? I suspect it will be based on a 'count if' formula but unclear on how best to go about what I suspect will be a very straightforward operation.
If prepared to add a formula in Row1 such as:
=COUNTIF(A2:A12,"a")
copied across to suit, then a Graded Color Scale should suit:
Here the relevant text has been chosen to be a.

Is it Possible to Sort (Colored) Cells After They Have Been Conditionally Formatted?

I have formatted 6 cells in a row based on three colors (green, red, and black). One cell is green, two are red, and three are black. Is there a way to sort these from green - red - black because sorting them manually does not work.
Based on Excel 2007, but I suspect available in all later versions also:
Re OP's comment "This doesn't help" maybe I should have taken I have formatted 6 cells in a row literally:

Resources