Conditional Formating - multiple cells with different relations - excel

So here is what I am looking for:
I want to highlight several cells, such as A1:A5 need to turn red based on a conditional format formula.
The conditional format for A1 would be:
=((A1/B1)<C1)
If true the cell turns red. Note C1.
The conditional format for A2 would be:
=((A2/B2)<C1%)
If true the cell turns red. Note it is still C1.
So here is the obvious question; how can I copy and paste this conditional formatting so that C1 does not change so that I can have only 1 rule vs 5?

I cannot cause a comment to solve the question. So, all credit goes to Scott Craner.
=((A2/B2)< C $1)
At the point in time i asked this, i did not know the function of $. Thank you!

Related

Excel Conditional Format by Formula containing Cell(Address) in more than one cell

I have a list of cell addresses (B1:B100) in one sheet, which refer to a range (A1:Z26, for example) on another sheet.
I have been trying to link these through conditional formatting (say, to light up red). By formula, I can have the following work...
=cell("address",a1)=B1 ; this makes the cell in the range refered to in B1 light up red.
But when I try to apply this to the whole list, as in =cell("address",a1)=B1:B100 it does not work...
Can anybody help me find a way forward here?
the issue illustrated
Slightly modifying your original formula, you could try:
=MATCH(CELL("address",A1),Sheet2!$B:$B,0)
I suggest you select A1:Z26, clear any existing CF from it, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=MATCH(ADDRESS(ROW(),COLUMN(),4),another!$B$1:$B$100,0)
Format..., select red fill, OK, OK.
References in the B column should be relative format.

Excel Conditional Formatting Nest AND and OR

I have a rather quick hopefully not too complicated question for you guys. I'm trying to use conditional formatting where I want a cell to turn red if the following statements are False or If the conditions are not met.
I'm using the Formula for Conditional formatting where you have to input it manually. The real problem I'm having is using a nested AND and OR.
Here's the formula I have for conditional formatting (one thing to note that, maybe I could be wrong, but my 2013 Excel is treating OR as an AND and vice versa. I've tested it many times and this is the case, so the formula you see below treats OR and AND as I mentioned. In short, pretend that AND is OR and OR is AND. But if it confuses you, just go with the correct convention:
=AND(OR(SUM(A1:A5)=0,SUM(B2:B5)=0),OR(SUM(C1:C5)=0,SUM(D1:D5)=0),SUM(E1:E5)=0)
So basically, say I have cell 'A7'. I want 'A7' to be red until there's a number in
Both A1:A5 and B2:B5 or:
E1:E5 or;
Both C1:C5 and D1:D5 -----> here's where it doesn't work.
Points 1 and 2 above work as desired, but when I add the second 'OR' it doesn't work. Remember, for some reason my Excel COnditional Formatting treats OR like and AND and vice versa so when I say:
OR(SUM(A1:A5)=0,SUM(B1:B5)=0)
It treats it like an AND where both conditions must be true, therefore, I've been following this convention.
So basically how do I have more that one OR statements within AND as shown above.
I hope I made the question clear. Appreciate your guys help!! If you can also tell me a general rule on how nested And OR works, that would be helpful.
Thank you!
Select A7, fill it with red colour (standard fill), clear any existing CF from it 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(COUNT(E1:E5),AND(COUNT(A1:A5),COUNT(B2:B5)),AND(COUNT(C1:C5),COUNT(D1:D5)))
Format..., select No Colour fill, OK, OK.
Try this =IF(OR(AND((SUM(A1:A5)>0),(SUM(B2:B5)>0)),SUM(E1:E5)>0,AND((SUM(C1:C5)>0),(SUM(D2:D5)>0)))=FALSE,TRUE,FALSE)
I put this into a cell first and used the Evaluate Formula before pasting it into the Conditional rule.
Set the text to be red if this is true.

AND / INDIRECT Conditional Formatting

What I am trying to achieve is if a cell in column AB equals "Yes" and a cell in column AC is blank, then a certain range of cells will be formatted. Currently the rule is not formatting cells that it should. I am basing this code on another formatting rule I am using that works properly, but does not use AND().
=AND(INDIRECT("ab"&ROW())="Yes", INDIRECT("ac"&ROW())="")
I am sure this is an obvious syntax mistake, but I am still very new to Excel and can't figure out why this isn't working.
Try This:
=AND($AB1="YES",$AC1="")
Use the format painter to drag the formula around.
As Jeeped said, change the 1 in $AB1 and $AC1 to your first row.

excel conditional formatting on cell versus adjecant cell

I have two columns with names.
I would like to change color on the corresponding cell where value is not the same as in first column.
A B
1 Lars Lars
2 Erik Erik
3 Niels Jens
4 Brian Brian
In the above case B3 should be highlighted.
I have looked all over (really - all over) the internet - and the closest I got was Column A to be highlighted if there was a difference.
You can use formula in conditional formatting. I have used VLOOKUP You can use MATCH as well
=ISERROR(VLOOKUP(B1,$A:$A,1,0)<>B1)
My approach would be to select column B, go to Conditional Formatting > New Rule > Use formula to determine which cells to format, and then I would put in the following formula:
=D1<>C1
Please, note that this is without dollar signs, this is very important.

Excel Conditional Formatting - IF this copy this cell

I have a need to do some conditional formatting based off other cells.
Basically I need it to do:
If cell contains yes, use the formatting of cell A1
If cell contains no, use the formatting of cell B2
I managed to do this by adding a reference cell
=IF(SearchMultipleTbl($B21,E$20,Overview!$C$2:$XY$82)="Yes",VLOOKUP(E$20,Overview!$C$3:$E$961,3,FALSE)="On Hold",FALSE)
The SearchMultipleTbl looks for the answer, if it is yes it uses the Vlookup of a reference cell
I don't know exactly what you are looking for but this should help.
=IF(A2="yes","true","false")
If A2 is yes then use the first condition, otherwise the second.
Hope this helps.

Resources