Conditional Formatting for rows - excel

How do you drag the conditional formatting across the row? For example I have color red for not equal to and green for equal to, but how can you apply the conditional formatting across the row "Due" for the other dates?
enter image description here

Your conditional formatting rules seem to be wrong.
That should do it:
Erase your current "Conditional formatting" rules.
Select the desired cells in row 10, starting from F10.
Click Conditional formatting / New rule / Formula.
Enter =F$10=F$11, click "format" and choose green fill color. Confirm with "OK" twice.
Repeat step 2 and 3.
Enter =F$10<>F$11, click "format" and choose red fill color. Confirm with "OK" twice.
Note:
The formula is always based on the active cell (the one you choose first in your selection, here F10).

Conditional Formatting > Manage Rules, select your relevant rule and edit the 'Applies to' range field to include the cells you want it to apply to.

Related

Find the satisfied cell in a area then highlight the row the cell lying

I want to find all the cells > 100 in the area 'A1:E13', then highlight the row the cell lying. I used the new rule of Conditional formatting with formula '=$A1:$E13>100'. It seems work for a single column, but not work for an area.
Clear any existing formatting from A1:E13 select that range and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=OR($A1>100,$B1>100,$C1>100,$D1>100,$E1>100)
Format..., select formatting, OK, OK.
(Will also highlight any rows containing Text. "Row" here is five columns wide.)
Without using any addtional column, you have to use this formula for the conditional formatting :
=(MAX($A1:$E1)>100)
Please be careful with the absolute (with $) and relative references, and do not forget the () around the formula.
Please also note that you have to select your area from top to bottom, i.e. you click into A1, hold mouse button and move down and right with the mouse, and release mouse button over E13 (which is probably the natural way of doing it!); if you start from the bottom (e.g. click in cell E13 and release over A1), then you have to test in the Conditional formatting =(MAX($A13:$E13)>100). This is because the conditional formatting takes the cell which is highlighted within the selected area as starting point for relative references to evaluate the formula.
If you want to use an additional column (e.g. F) in your worksheet (which you can hide later of course), it is even easier:
- In cell F1 you put MAX(A1:E1)
- With conditional formatting ("Use a formula to determine which cells to format"), you test whether $F1>100 for your entire range.

Excel formula for conditional formatting when text appears more than 3 times in row. Need to highlight the No cells

Trying to figure a Excel formula for conditional formatting when 'No' appears more than 3 times in row. Need to highlight the No cells
Supposing that you have the "NO" values in column A starting from the cell A0. In HOME Tab, choose Conditional Formatting -> Manage Rules -> New Rule. Choose "Use a formula to determine which cells to format" in Select a Rule Type. Enter the following formula in the Format values where this formula is true:
=OR(AND(A1="NO",OFFSET(A1,1,0)="NO",OFFSET(A1,2,0)="NO"), IF(ROW(A1)>1,AND(A1="NO",OFFSET(A1,-1,0)="NO",OFFSET(A1,1,0)="NO"),FALSE),IF(ROW(A1)>2,AND(A1="NO",OFFSET(A1,-1,0)="NO",OFFSET(A1,-2,0)="NO"),FALSE))
Click the Format button to choose the way to highlight the cells. Then click OK and go back to Conditional Formatting Rules Manager. Choose the cells that you want to format in the "Applies to" field. Then Apply.
The above formula returns true if there are a consecutive three "NO" cells.

Automatically apply fill colour conditional upon row by row comparison of two columns

I have two Excel columns of numerical natural values and of the same length.
For each row I would like to fill the cells with red if the values are different, with green if they are equal.
I thought I could do this using Conditional Formatting but it seems it is not fit to compare two columns.
Am I wrong? How can I do that? How to use an IF statement for this?
Assuming the values are in column A and B
To create the first rule:
Select columns A an B. Do this by dragging from column header A to
B.
Then, click Home > Conditional Formatting > New Rule.
In the New Formatting Rule dialog box, click Use a formula to
determine which cells to format.
Under Format values where this formula is true, type the formula:
=$A1=$B1
Click Format.
Select a green fill color.
Click OK until the dialog boxes are closed.
The formatting is applied to column A and B.
Now you can create a second rule for =$A1<>$B1 with red fill color.
A "cheat" (if your columns are not too long) is to transpose your two columns, then use CF's Highlight Cells Duplicate Values rule (but change the default colours to suit) and transpose back again. It may be a slight advantage of this transposition that formatting will not be applied to cells in the same row that are both blank (though easy enough to arrange for this with a formula rule).
The point of my answering however is really to say that you only need one rule. Since every cell is going to be either red or green using standard formatting for one format is sufficient. For example, fill your entire data set with 'standard' green fill and then apply a formula rule for red. This will happily override the 'standard' green fill where appropriate.
If applied to Range $A:$B (such as by first selecting ColumnsA:B) I suggest a formula rule of:
=AND(A1<>"",$A1=$B1)
You do not need an IF statement because the formatting is conditional (the IF is implicit).
Assuming your data is in columns A and B, first select the column you want to colorize.
Then for the green :
Conditionnal Formatting > New Rule > Use Formula to determine... > type formula : =(A1=B2)
Then Click the Format... button and choose Green color
And for the red :
Conditionnal Formatting > New Rule > Use Formula to determine... > type formula : =(A1<>B2)
Then Click the Format... button and choose Red color

Excel conditional formatting using generic formula

I want to conditionally format cells in Excel. Is it possible to create a generic formula that does the following:
IF the value in column A of the given row = "A"
AND the value in the given cell is greater than .1
AND the value in the given cell is less than 1
THEN format the cell with a light grey background color
In the example below, I want the formula to apply to cells B1:K2, but I only want cells E1, I1 and K1 to be highlighted in grey.
Select B1:K[n]. B1 is the active cell.
Then, click Home > Conditional Formatting > New Rule.
In the New Formatting Rule dialog box, click Use a formula to
determine which cells to format.
Under Format values where this formula is true, type the formula:
=AND($A1="A",B1>0.1,B1<1)
Click Format.
In the Fill box, select your light gray color.
Click OK until the dialog boxes are closed.
Greetings
Axel
Tap F5 and when the GoTo dialog opens, type A:K (◄ just like that) into the Reference: box and click OK. You should have columns A through K selected with A1 as the Active Cell.
Create a new Conditional Formatting Rule using the Use a formula to determine which cells to format option and supply the following for Format values where this formula is true:
=AND($A1="A", A1>0.1, A1<1, ISODD(COLUMN(A:A)))
Click Format and select a light=grey Fill then click OK to accept the format and then OK again to create the new CF rule. Your results should resemble the following.
    
Edit: Revised from literal interpretation to subjective interpretation
Select cells E1:F2,I1:I2,K1:K2 (hold down Ctrl while selecting discontinuous range) so the conditional formatting will apply to them.
The cell K1 should have the focus, i.e. be highlighted with white background, while other selected cells are highlighted with dark background. Insert conditional formatting with following formula:
=($A1="A")*(K1>0.1)*(K1<1)

if cell a1=text then cell a2=bold. How do i do it in excel?

if cell a1 is equal to some text then i want to select the corresponding cell in the same row to be in bold and italic. for eg if there is text "james" in cell a1 then i want to make the other cell a2, containing an integer, in bold and italic. This has to be done for a selective range in the worksheet, so wherever there is james i need the corresponding cell to be bold and italic. Please help me out here.
Your Google term is conditional formatting.
did you try simple conditional formatting?
in 2007 :
Conditional Formatting --> new rule --> Use a formula to determine which cells to format
formula : =IF(A1="james",TRUE,FALSE)"
where "james" would of course better be replace by a reference to a cell.
Select cell b1
On the Home tab, in the Style group, click Conditional Formatting, click New Rule...
select "Use a formula to determine which cells to format"
Set the formula to =A1="james". Take Tom's advice and make "james" a cell reference.
Click the Format... button, select Font Style "Bold Italic" and click OK
Click Ok to close the New Formatting Rule dialog
you should still have cell b1 selected
On the Home tab, in the Style group, click Conditional Formatting, Manage Rules...
Find the rule you just created and change its "Applies to" from =$B$1 to =B1. This makes the "applies to" reference relative rather than fixed (that's what the $ is doing) in order for copy and paste to automagically change your formulas to the destination row/column.
click OK
Copy and paste cell b1 to the other cells in the b column.
I hope this helps!

Resources