Conditional Formatting Highlighting entire row issue

Dxmiian

New Member
Joined
Jan 25, 2020
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Hi.
I have an issue when trying to use conditional formatting to highlight row.
My sheet has row 1 as titles and questions and row 2 from C2:X100 is my area for pass & Fail answers. I want any row containing fail to be highlighted.
Ive been able to highlight each cell but not the entire row.
any help would be appreciated.

Thanks,

Damian
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Select the entire range C2:X100
use the following CF
Excel Formula:
=COUNTIF($C2:$X2,"Fail")
( the referencing is the important part) and format as required
 
Upvote 0
Since your range is not very big it probably will not make a noticeable difference but using a 'MATCH' type function should be a little less resource-hungry so that would be my recommendation.

23 08 26.xlsm
CDEFGHIJKLMNOPQRSTUVWX
2PassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassFail
3PassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPass
4PassPassPassPassPassPassPassPassPassFailPassPassPassPassPassPassPassPassPassPassPassPass
5PassPassPassPassPassPassPassPassPassPassPassPass
6PassPassPassFailPassPassFailPassPassFailPassPassPassPassFailPassPassPassPassPassPassPass
7PassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPass
8PassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPassPass
9
10PassPassPassPassPassPassFailPassPassPassPassPassPassPassPassPassPassFailPassPassPassPass
Fail
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:X10Expression=XMATCH("Fail",$C2:$X2)textNO
 
Upvote 0
Since your range is not very big it probably will not make a noticeable difference but using a 'MATCH' type function should be a little less resource-hungry so that would be my recommendation.
Hi,

this works perfect for certain answers. an issue im encountering with it, is my answers come from Microsoft forms using flow. the word fail in most questions present as "["Fail"]" so the formula isnt reading that correctly.

is there a way i can get it to just read the text and not [""] also ?
 
Upvote 0
Change the CF formula to
Excel Formula:
=XMATCH("*Fail*",$C2:$X2,2)
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,653
Members
449,111
Latest member
ghennedy

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