I could not copy same conditional formatting to other cells - excel

For example I created conditional formatting using formula with red, but after I finishing this I copy all the way to the right, selecting cells to apply to ; It worked when I dragged them to the right But it does not work when I drag down.
Here is my formula
Here is my table
So I did this manually I also tried CONTROL+C and PASTE formats
The problem is I changed references on top I do not know starting reference what should be and every time I wanna apply to both rows and columns what formula should I write?

If you have equal spaces between low and high blocks of data, you can use offset inside condition
Select columns E:J
New Rule > Use formula
Type formula: =E1>OFFSET(E1,-7,0) (7 is a distance between each lower and higher cell to check
Set desired color and press ok
Since formula relative so will update for each cell

Your conditional formula has absolute references to the row: E$13 > E$6
But the "Applies to" describes cells all in a single row. So locking the formula to refer to a specific row makes no difference. (If anyone can word a clearer explanation please submit an edit!)
If you change the formulas to E13 > E6 you should be able to copy the formatting across and down your sheet.
Make the formula correct for the first cell in "Applies to", and Excel will apply it to the rest of the range as if you'd copied and pasted it.
So you could probably set a single rule: E11 > E4, and apply it to all the blocks: E11:F13;I11:J13;E17:F19;I17:J19;...

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.

Conditional formatting many cells by individual formulae

I want to apply a conditional formatting (CF) rule to a group of cells to individually colour them if their individual cell values are greater than a threshold (in this case >=5). To illustrate:
The top row shows how I want the bottom row to look. For the bottom row I cannot figure out how correctly format according to cell-specific formulae.
The problem is identifying a way to specify cell-specific CF formulas in a single operation for a group of cells - as you can by pasting/dragging normal cell formulas. I obviously don't want to have to manually specify the formula for each cell!
Grateful for assistance.
Select the rows or columns or range that you want to conditional format,
Enter the below formula in the formula bar in conditional format and choose a fill color,
=AND(A1>=5,ISNUMBER(A1))
If you are starting in row3, change the A1 to A3. The $ that you have in the formula makes it absolute. It should be relative.
You just select all required cells to format. Then go to conditional formatting.
Check what is the cell shown just before the formula bar (the single cell that represents the selected range, also called default cell) and use that cell in your formula without absolute reference. like B3>=5 or R3>=5

Excel: How to highlight cells if the neighboring cell value differs by 2 or more?

I have several hundred rows of data in sets of two rows. Each row has ratings from 1-5. I need to highlight the cells when they differ by more than 1.
For example if one cell has a "4" and the cell below it is "3" or "5" that is ok. If one cell has a "4" but the cell below it has a "1,"2," or "5," both of those cells need to be highlighted.
I have looked into using conditional formating but this does not help because I can only enter rules asking to highlight < or >, not specific differences of 2 or more.
Background: The data is two sets of subjective ratings of videos of an autistic patient using psychological measures. If one rater differs from the other rater in scoring by more than "1," the data needs to be highlighted so the scoring for that measure can be discussed.
The picture is how the data should look like (not actual data file): http://imgur.com/a/Uym3G
Thank you!!
Assuming you only have two raters and no gaps in Column A after the first video and before the last, please select the range to be formatted starting in C4 and try this CF formula rule:
=OR(AND(ISODD(ROW()),ABS(C4-C3)>1),AND(ISEVEN(ROW()),ABS(C4-C5)>1))
For simplicity, and because I like to always have the ability to quickly change my conditional formatting, I like to use helper columns.
In this case, you can bring a helper column that you will hide afterwards.
Assuming your data starts in A2, and row 1 is your header rows. Assuming we are putting a helper column in B:
In B2 and B3: =ABS(A2-A3)
Drag all the way down
Put cursor in A1, conditional formatting based on a formula.
Formula =$B1>=2
Applies to $A:$A
Hide your helper column
Not sure what you base your statement about conditional formatting on, because what you describe is entirely possible with conditional formatting.
In conditional formatting you don't have to slavishly click the out of the box cell highlighting rules. You can easily roll your own by using a rule with a formula. Consider the following screenshot:
Select cells A2 to A10, create a new rule that uses a formula and enter this formula:
=OR(ABS(A1-A2)>1,ABS(A2-A3)>1)
Select a format and apply the rule to more rows/columns as desired.

Conditional Formatting with Formula using Relative References

I looked around for an answer to this and found a similar thread, but it did not quite answer my question so here goes.
I have two columns, each with 262,000 rows of data. I am trying to highlight data in one of the columns based off of two conditions. I think I have the formula right for the conditional formatting, but the problem is that it will not apply to the entire column as I want it to. For example:
=AND(K6<=1638, L6=0)
That's the formula I have. I want that formatting to copy and paste all the way down column K, iterating each time. For example, the cell below should have formatting that says the following: =AND(K7=1638, L7=0) but I cannot get it to this. It just keeps looking at the values in cells K6 and L6.
Is format painter not the way to get this formatting applied to each cell?
Have you tried using conditional formatting as below?
I simplified the formula in the example but should work for your case as well.
It seems to me more practical for large ranges than Format Painter.
The formula =A2 > 4 has the cell A2 hardcoded, yet it magically works when applied to cells A6, A7, etc.. Excel uses this formula in relation to the first cell in the range, so if you wanted to highlight cells in column A that are greater than column B, and your range started in A2, your formula would be = A2 > B2.
I suggest select Column K 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(K1<=1638,L1=0)
Format..., select choice of formatting OK, OK.
When the rule is shown in the Conditional Formatting Rules Manager it is as applicable to the top left hand cell of the Applies to range. CF in effect raters through the range adjusting cell references automatically just as they adapt elsewhere (ie when going down Column K, K1 scrolls forward to K2 etc, whereas K$1 would stay as K$1).
You can do the conditional formatting you need by utilising OFFSET() and ROW() functions, so that your
=AND(K6<=1638, L6=0)
becomes something like:
=AND(OFFSET(K6,ROW()-6,0)<=1638, OFFSET(L6,ROW()-6,0)=0)
replace -6 with the row offset value you need.
So, for example, if you enter this formula into some cell in row 6, it will look into K6 and L6 respectively because ROW()-6 evaluates to 0 – so no offset is applied.
Then in row 7 the SAME formula will look into K7 and L7 because ROW()-6 evaluates to 1 which means offset one row below K6 and L6.

Conditional formatting for a column based on the value of header

I have several columns where the data from rows 7 onwards changes depending on the selection made from a dropdown menu in row 6. Most of these options will result in textual or number based values appearing, but two of them would need to be formatted as currency.
Essentially what I want is a conditional formatting formula that says; if row six in any column has a value of “Implied Unit Rate” or “Annual budget”, format rows 7 and onwards in that column as currency.
I can get this to work by creating two separate conditional formatting formulas and applying them both to the whole area, but it seems like there should be a way to do it in a single formula.
My current formulas, applied as two separate rules:
=INDIRECT(ADDRESS(6,COLUMN(),1))="Annual Budget"
=INDIRECT(ADDRESS(6,COLUMN(),1))="Implied Unit Rate"
How I think it should work when applied as one rule:
=OR(INDIRECT(ADDRESS(6,COLUMN(),1))="Annual Budget",
INDIRECT(ADDRESS(6,COLUMN(),1))="Implied Unit Rate")
When I enter the combined formula in a regular cell within the worksheet, it does return true as expected, but does nothing when I apply it as a conditional formatting rule. Any ideas? Thanks in advance!
Now I may be mis interpreting what Scott is saying, so I am going to say this in my own words.
Your condition check on the cell address in question is a little "verbose". In order to apply your conditional formatting, select the range you want to apply your condition formatting to first. Lets arbitrarily say select range A7 to D42. After selecting the appropriate range, ensure cell A7 is the active cell of the selected range. This usually means there is a border around A7 to D42 and all cells but A7 have been slightly greyed to indicate that they have been selected, and A7 will have a brighter background to indicate that it is the active cell. With all that still in effect, select your conditional formatting.
In conditional formatting choose formula as the option (last one at the bottom) to control how your formatting will be applied. In the region where you can enter your formula, enter the following:
=OR(A$6="Annual Budget", A$6="Implied Unit Rate")
The $ will keep the row and column reference from changing as it is applied to each cell in the range. It will always be checking row 6 of what ever column the cell is in. The column A reference is relative to the active cell.

Resources