I want to highlight cell D2 Red colored if value in E2 is between 0 to 10 and if the value is 11 to 20 than yellow color and if >20 than no color. Please help somebody is this possible? and how to do this?
select all of columns D&E (eg by clicking on column headers, with Shift)
click conditional formatting -> new rule -> use formula to determine which cells to format
in the formula box type : =AND($E1>0,$E1<=10)
set fill to red, click OK
-
select all of columns D&E (eg by clicking on column headers, with Shift)
click conditional formatting -> new rule -> use formula to determine which cells to format
in the formula box type : =AND($E1>10,$E1<=20)
set fill to yellow, click OK
Related
So the problem I have is trying to change the fill color using conditional formatting in excel. This is basically what I want to do:
First I have a column, something like this:
1
1
1
2
2
3
4
4
4
Now I want to use conditional formatting to check if cell A2=A1, if it is to have fill color #1, and so on. Once it gets to cell A4 and it checks that A4=A3, if it does not match I want it to switch the fill to fill color #2, and it continues to check. Basically every time the cell does not match the value of the cell above, to switch to a different fill color.
I tried using the OFFSET function to check if that value was the same as the cell above, that worked but once I added the function to conditional formatting it went all funky and did not change colors.
Using your sample data, say you put them into cell A1 to A9, highlight cell A2:A9 only, and set up the conditional formatting as shown below.
For duplicated value you will use =A2=A1
For different value you will use =A2<>A1
select a cell outside of your table (let's say it's Z1) and fill it with the value: AB
cell B1 value: A
in all cells from B2 downwards: =IF(A2=A1,B1,SUBSTITUTE($Z$1,B1,""))
it means that if A2<>A1, B2="B"; if A3=A2, B3=B2="B"
fill all cells on column A with the color you want for "cluster" B: let's say it's blue
add "$B1="A" in conditional formatting, filling = red
I am trying to create a formula in Excel whereby a cell would change color based on the value in the previous cell.
for example if cell B2 contains value X and then B3 contains value Y, I would like B3 to turn green if B3> B2 else to turn red.
'Standard' fill red the relevant range and select Column B, clear any existing CF rules and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(B1>B1048576,ROW()<>1)
Format..., select green fill, OK, OK.
I am assuming your column is labelled.
I have a table that has Color and Progress Interval Columns, I wanted to change the cell color in Progress Interval Column based on cell in Color Column. Example if Cell D2 says Green, E2 will be filled with Green.
Snap Shot From Table
Conditional Formatting
If Progress Interval is in column E, select the range from E2 to the last cell e.g. E20 and go to Format >> Conditional Formatting
choose Formula is and copy/paste the following formula:
=D2="Green"
Now click Format and click on the Patterns tab and choose the green color you need and change anything else (Font, Border). When done click OK.
Now you can click Add to add another condition and do the same for Yellow. When finished click OK.
If you want to exclude cells that contain no data use:
=AND(E2<>"",D2="Green")
Now only cells in the E column containing data will be hightlighted.
How can I increment the gradient colour to match a value given in a cell.
This is a mock up using cells to show the output I want.
What happens when using gradients that the length of the line shrinks but all the gradient colour stops remain. How can I stop the gradients at the colours based on value.
This is a bar chart with gradients as you can see the line length changes but all colour stops still show.
Apply formulas right next to the question rating and then do conditional formatting as per my screenshot.
The formula is to fill the cells with value 1 or 0 , so if you have 1 in the cell it should be colored otherwise no fill.
Similar one to Imran's solution but with following changes,
A different formula for validation
Use of Excel Tables so that you can add / remove rows and keep the conditional formatting range dynamic
Once you have the initial data set ready please convert the data range including the columns for color fill to an Excel Table (Select the entire range including headers -> press Ctrl + T (OR) Click on 'Insert' Tab in Ribbon -> Under 'Tables' section click on 'Table')
Once you get your data set converted to an excel Table select the column range (here B2: B4) within the table for applying 'RED' fill
Shortcut: Select any cell in the column B within the table and press Ctrl + <Space Key>)
Goto Conditional Formatting -> New Rule -> Use a formula to determine which cells to format
RED =COLUMN(B$2)-COLUMN($B2)+1<=$A2
Click 'OK' and hit 'Apply'
Repeat the same for remaining 4 columns with the below formulas,
ORANGE =COLUMN(C$2)-COLUMN($B2)+1<=$A2
AMBER =COLUMN(D$2)-COLUMN($B2)+1<=$A2
L GREEN =COLUMN(E$2)-COLUMN($B2)+1<=$A2
D GREEN =COLUMN(F$2)-COLUMN($B2)+1<=$A2
Here is the screenshot showing the formula used,
The conditional formatting range will automatically expand / contract when rows are added / deleted.
Cheers !
I have a list of names in column A
I have a list of names in column B determined by formula.
I was the specific name to turn green in column A if it is present anywhere in column B.
e.g.
A - 10 names, only 3 are "drivers"
B - I type driver names and other names as I 'fill the cars' with people. I want the name in column A to turn green when I type it in column B so I know they've been sorted.
Working in google docs
Click on cell A1. Then choose Conditional Formatting -> New Rule from the menu.
Choose the option "Use a formula to determine which cells to format".
Type the following formula into the box:
= (SUMPRODUCT((A1=B:B)+0))>0
Click the "Format..." button to set the color to green.
Click OK.
Under "Applies to", type in your range of cells in column A where you want the conditional formatting to apply.
See below example that shows this conditional formatting applied to cells A1 to A4. Notice how any name in column A that appears anywhere in column B is green.