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.
Related
I'm trying to conditional format a cell.
I have an amount in C3 (32,123.45). I have a total formula in column K (column K is totaling C9, E9, I9, J9 etc). There is a formula that is C3-K9-K13-K17-K23. The result should be $51, 123.45. Since the formatting is Accounting, it is showing ($17,123.45) instead of the $51,123.45.
I would like to use the conditional formatting so that if the result of the range (C3-K9-K13-K17-K23) is higher than C3, then it should format red. I'm having trouble with this as I'm not that good with excel. This seems to be an easy fix. Just can't find it.
With C3 Selected go to Conditional Formatting > New rule > Use a formula to determine which cells to format and enter this formula.
=SUM($C$3,$K$9,$K$13,$K$17,$K$23)>$C$3
Click "format..." and pick how you want the cell to look when it is higher than the range.
As an aside, your formatting won't change your value. Your calculation is $68,246.90 too low.
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
I'm working on a conditional formatting issue. I would like the whole row to highlight if the text in the same row in columns B and C disagree. So far, I've been able to write conditional formatting rules that leave the cell un-touched if there is no data and if there is a data entry that disagrees with the text in Column B, but I can't seem to get the formula to apply to the full row.
Here is what I currently have:screenshot of the document with conditional formatting rules visible
I'm working on Excel 2010. Maybe there is a way to use a logic formula?
I look forward to hearing suggestions!
You can do this with a formula. Highlight the range you would like to format, create a new conditional format, select "Use a formula..." and enter the formula as it would apply to the first cell or in this case row.
In my case, I chose the first 6 rows: $1:$6 as my range. So in this case, I would enter the formula as if I were only entering it for my first cell. The formula =$B1<>$C1 will check for inequality between B1 and C1 in the first row, B2 and C2 in the second row, and so on.
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.
I want to highlight cells in column A (using the conditional formatting tool) if the cell's corresponding row contains the letter z anywhere within that row. I want to do this so I can sort data to the top if it is highlighted in column A.
I'm using the formula:
=COUNTIF($A1:$AA1,"*z*")
But I don't want to highlight the entire row, just the corresponding cell in column A for that row.
What is the formula to do this?
Select ColumnA then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=COUNTIF($A1:$AA1,"*z*")>0
Format..., select highlighting OK, OK.
This will apply only to Column A (because of the selection).
This seemed to work for me when testing with a 3x3 cell table:
Highlight A1:A3
Conditional Formatting>New Rule>Use a formula to determine which cells to format
Formula:
=COUNTIF($B1:$C1,"z")
Then only cells in A were highlighted.
"I want to do this so I can sort data to the top if it is highlighted
in column A."
Ok, first of all, you don't need to use conditional formatting to sort. Second of all you wouldn't want to reference A1 in your formula =COUNTIF($A1:$AA1,"z") - it is a circular reference and any formula you put in column A would not return "z" anyways because you are using it for your COUNTIF formula.
The formula you want to use is:
=IF(COUNTIF($B1:$AA1,"z")>0,1,0)
If you want to look for any row that contains a z anywhere in a string you would want to do a wildcard countif:
=IF(COUNTIF($B1:$AA1,"*z")>0,1,0)
Then you can just sort on column A for all your data - high to low.
Basically you have demonstrated a basic misunderstanding of how to sort in excel(no offense). This should help you. Good Luck.