Conditional formatting -Help needed

VineetJ

New Member
Joined
Sep 27, 2011
Messages
5
Hi,
I need to highlight the entire row in case a particular condition is true. I am using MS-Excel 2007 I could figure out, how to highlight a cell but I was unable to highlight the entire row, The formula I am using as a condition is : =OR(M3="Fail",W3="Fail",Z3="Fail",AG3="Fail",AJ3="Fail") and I want to highlight 3<SUP>rd</SUP> row in case the formula returns the ‘True’ value.
I would also like to apply the similar formula on the table from row 3 to row40. Can you please help me with the solution for this problem.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the board...

Change the formual to

=OR($M3="Fail",$W3="Fail",$Z3="Fail",$AG3="Fail",$AJ3="Fail")

And change the "Applies To" Range to $A$3:$AJ$40


Hope that helps.
 
Upvote 0
Thanks Guys.. it worked, Can you please help me by explaining how the formula change from
=OR(M3="Fail",W3="Fail",Z3="Fail",AG3="Fail",AJ3="Fail")
to
=OR($M3="Fail",$W3="Fail",$Z3="Fail",$AG3="Fail",$AJ3="Fail")
Did the trick?
In short what is the significance of $..while mentioning the cell ranges?
 
Upvote 0
It's called absolute referencing...

the $ locks the column reference.
So when the formula is applied to subsequent cells to the right or left, the column reference stays the same...

=A1 changes to =B1, =C1, =D1 when formula dragged right.
=$A1 stays as =$A1 when formula is dragged right...

Similar for row reference..

=A1 changes to =A2, =A3, =A4 when formula dragged down
=A$1 stays as =A$1 when formula is dragged down

And you can use both as well

=$A$1 Stays $A$1 no matter which direction the formula is dragged.

Hope that helps.
 
Upvote 0
Thanks Guys.. it worked, Can you please help me by explaining how the formula change from
=OR(M3="Fail",W3="Fail",Z3="Fail",AG3="Fail",AJ3="Fail")
to
=OR($M3="Fail",$W3="Fail",$Z3="Fail",$AG3="Fail",$AJ3="Fail")
Did the trick?
In short what is the significance of $..while mentioning the cell ranges?
A bit shorter:

=SEARCH("fail",$M3&$W3&$Z3&$AG3&$AJ3)
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top