Multi color cell formatting - excel

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):

Related

Excel; Conditional formatting Date/Time between two columns

I have two columns, for example Column A and B with the below style of set up.
What I am wanting to do is to highlight both columns in a colour based on certain parameters.
For example: If Column B is due to occur AFTER Column A - no colour. If Column B is due to occur at the SAME TIME as Column A - Highlight both cells in yellow. If Column B is due to occur BEFORE Column A - Highlight in Red.
Please see below examples of the kind of data I would be working with, and then below it an example of what it would look like should the conditional formatting colour it in correctly.
Thank you.
Base Data
Completed Formatting
OK, figured out that 1800LT = 1800 hours, Local Time(?)
You will need to create two conditional formatting rules. One for each of your conditions.
Conditional formatting > Manage Rules... > New Rule... > Use a formula to determine which cells to format.
Rule 1, set color to Red:
=IF($B1<$A1,TRUE,FALSE)
Rule 2, set color to Yellow:
=IF($A1=$B1,TRUE,FALSE)

Excel MAX condition between two column

Example a table look like this,
Col A and Col B in this example (it can be more than two columns) has its own respective background cell color. In column "C", I use =MAX(A2, B2) etc. to get the max value between the two. However, I also want the formatting color to be picked up (copied) following the max value from each of the respective column as well. If A is the MAX value then the cell background will be from A and if B then it will be from B. Also, if the value of the two A and B are the same (or if more than two columns, all of the value should be the same), then the color will be red as an example.
I have tried using conditional formatting but I cannot make it work and was hoping without a VB script. Thanks for the help.
I think you need three rules for three different color. Try-
=$A1>$B1 'For yellow
=$A1<$B1 'For light green
=$A1=$B1 'For red

Excel change color of a column if x is in other columns

I have a problem with a spreadsheet that I have been working on for a bit at work. I need it to do the following:
I have an excel spreadsheet that has 5 columns. If column A through D has 1 or 2 "x" then column E is turned yellow. If column A through D has 3 or 4 "x" then column E is turned red.
Thank you for your help!
Assuming your data starts in the 2nd row.
Highlight all the cells you want this formatting for in Column E, starting with row 2 (or whichever is your first row of data
Go to Conditional Formatting in the Home part of your ribbon
Select New Rule then Use a formula to determine which cells to format
Copy =COUNTIFS($A2:$D2,"x")=2 and make the highlight the color you want (yellow)
Repeat steps 1-3 then copy =COUNTIFS($A2:$D2,"x")>=3 and make the highlight the color you want (red)
You may have to adjust for a uppercase 'x' depending on the format of your data, but this should achieve what you're looking for. The key is to make sure the countif formula is referring to the row that you have activated so that way the formats line up properly.

How to use marco to dynamically change color of row if there is same value in a cell

Could you please lead me in below task?
In excel sheet I want to make that if there is a same value in a column, I want to dynamically change the color of the row that includes the same value.
The important point is that, i want to change the color of the only row based on other column cell value.
Ex:
No | Patch number | Patch version
1 123456 6
2 123456 7
In above example, I only want to change the color of row of number 1. The condition is based on Patch version .
Thank you!
For this example I entered the desired patch number in another sheet and named the cell 'PatchHighlight'
Then used this formula for conditional highlighting on rows 2 to 100
=$C2=PatchHighlight
The PatchHighlight cell could itself contain a formula, such as =MAX(C:C)
Ok, I think this does what you want. It can highlight any row where another row has the same value in A and a larger number in B. The formula to use is:
=COUNTIFS($A:$A,"="&$A2,$B:$B,">"&$B2)>0
If you stick this formula in C2 it will display TRUE or FALSE depending on whether other rows have the same value in A and a larger number in B or not. Then you could copy it down to all the other cells in C.
If you want to highlight rows using this you need to highlight row 2 and choose Conditional Formatting, choose New Rule, choose "Use a formula to determine which cells to format" and enter this formula along with the desired formatting. Then you need to choose Conditional Formatting, choose Manage Rules and enter this formula into the Applies To field:
=OFFSET($A$1,0,0,COUNTA($A:$A),3)
This will make the conditional formatting apply to columns A, B and C of every row of data you have. And if you add more data it will automatically highlight those rows too.
For more detailed instructions have a look at https://www.get-digital-help.com/2009/05/17/prevent-duplicates-using-dynamic-conditional-formatting-in-excel/ but use these formulas instead of the ones they suggest for finding duplicates.

Excel Conditional formatting whole table color code

I would like to create a condition for my whole table.
I have three categories (i.e R, G, B).
If the first column (example: A1) is R, the rest of the ROW (ex: B1:E1) should be colored with red. If G, then green, and if B, then Blue.
What I've done so far is I've selected my work area which is B1:E1, then clicked on conditional formatting > new rule > "Use a formula to determine which cell to format" (I'm using excel 2010). Then Typed this at the formula bar =SEARCH("R", $A$1)>0. It does change the color of B1:E1, however, I don't know how to do this for my whole table. If I select my whole table, and A1 is equal to R or G or B, the whole table change its color to whatever the value of A1. I also change my formula to =SEARCH("R", $A$1:$A$120)>0 which is the range of my table, still doesn't work. I've also created 3 conditions for each color with same formula (I just changed the letter R to G and B), still does not work.
Any ideas? Thank you in advance.
you were actually pretty close, just change
=SEARCH("R", $A$1)>0
to
=SEARCH("R", $A1)>0
so the conditional formatting rule will always look for "R" in the current row rather than row 1.
You should have this rule apply to the whole range that may be colored (I'm guessing B1:E120)
Also, you can make two rules for your other colors using the same approach.

Resources