highlight entire row using conditional format - excel

I reviewed below answer. it's really working for me when i used david's answer. But i have slight different question.
I want to highlight A1,B1,C1,D1 and E1 when condition is true for A1. As per the below answer it highlighting only values in column A
Compare Two columns
Regards,
Ramana

Assuming you should highlight columns A:E in case A1 has "abc" value, you should do the following:
Select the desired range of cells (or perhaps entire columns A:E).
Add Conditional Formatting rule based on a formula, enter the following code: =IF($A1="abc",1,0)=1
Select desired highlight and apply rule.
You're done. The above code will highlight ANY row for A:E columns in case corresponding cell in A has "abc". Modify condition as you wish.
Sample file: https://www.dropbox.com/s/eyx2un2v5r5z25w/CondFormatA-E.xlsx

If you are using this formula for column A
=NOT(ISNA(VLOOKUP(A1,$B:$B,1,FALSE)))
then just amend it by putting $ in front of A1, i.e.
=NOT(ISNA(VLOOKUP($A1,$B:$B,1,FALSE)))
and apply that conditional format to all 5 columns A to E
Note: it might be simpler to use MATCH - this should give the same result
=MATCH($A1,$B:$B,0)

Related

How to compare two different column and highlight highest value in each row?

I am aware of using MAX for conditional formatting however I am confused about how to compare two different columns. I would like to use conditional formatting to compare data/value from columns B and Columns E, then highlight the highest value in each row based on these two columns. I wonder if this is possible?
It does not seem working for this:
enter image description here
You can use conditional formatting to achieve this:
Select the entire range (for example, B1:E10)
Add a new conditional formatting rule.
Home >> Conditional Formatting >> New Rule >> Use a formula to determine which cells to format:
=($E1>$B1)
=($B1>$E1)
Just make sure you type the Formula rather than selecting the cell, or you will have the $ symbol in the reference, which you don't want in the row reference.
So highlight the largest value in each row? That is possible using conditional formatting.
For example, if your entire data frame is in A2:B11, first do =B2>A2 then =A2>B2.
The steps for conditional formatting are below:
highlight the full column of cells you wish to format (in this case, say A2:A11)
Home->Conditional Formatting->New Rule->"Use formula..."
Enter the above formula (being sure to unfreeze column and row references)
Format->Fill->Select Color->Okay->Okay

Conditional Formatting for a row when there is a text disagreement between two cells

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.

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.

How to do conditional formatting on individual rows in same column?

I want to do conditional formatting on the following data.
Data Image
When first column (1c) value is equal to second(2c). Paint green else paint red.
Compare:
1r1c to 1r2c
2r1c to 2r2c
3r1c to 3r2c
Currently it is comparing r1c1, r2c1 and r3c1 to r1c2.
What's your current conditional formatting rule?
edit:
OK, your current rules are =$E$2 and <>$E$2, both applies to =$D$2
You are telling MS Excel to compare cell D2 with cell E2. First you have to apply your rules over area D2:D_many (you can apply rule over both columns to get both cells colored, sometimes it's useful). Second remove $ in your rules, change rules to =E2 or =$E2 If you apply conditional formatting rule over one column (D), there will be no difference, but if you apply rule over multiple columns (for example D:H), first one will compare cell with cell in the same row but one column right, second one will compare cell with cell in the same row and column E.
Ok.
I tried to create a new rule and got the correct format. I used this formula.
And the rule created was this
Now working fine. Thanks.

Conditionally format column A if cell row contains "z"

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.

Resources