Conditional formatting formula for Highlighting a row that contains either xyx or blank cell

nsa1

New Member
Joined
Jul 11, 2023
Messages
39
Office Version
  1. 2010
Need help with conditional formatting formula and apply for highlighting a row that contains either text "xyx" or blank cell/cells

see below snapshots...

thanks,
NA
 

Attachments

  • xy1.png
    xy1.png
    31 KB · Views: 8
  • xy.png
    xy.png
    59.7 KB · Views: 10

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
try this:
Mr excel questions 53.xlsm
ABCDEFGHIJ
1123
2NameJanFebMarNameLongCF RuleCF Rule Text
31Alper871199125981FALSE=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
42Burrows7577119309924FALSE
53Chandler10310107909763FALSE
64Colby1029010335xyzTRUE
75Frantz1081562727561FALSE
86Gonzalez7001xyz7806TRUE
97Kyle1185482888432FALSE
108Little640910608TRUE
119Long613251048439FALSE
nsa1
Cell Formulas
RangeFormula
A3:A11A3=SEQUENCE(9)
J3J3=FORMULATEXT(I3)
I3:I11I3=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A7:E11Expression=SUM((--("xyz"=$C7:$E7))+(--(""=$C7:$E7)))>0textNO
A3:E5Expression=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0textNO
A6:E6Expression=SUM((--("xyz"=$C6:$E6))+(--(""=$C6:$E6)))>0textNO


1689870673985.png
 

Attachments

  • 1689870542848.png
    1689870542848.png
    29.1 KB · Views: 8
Upvote 0
thanks. I am wondering why do we need to input three separate rules in formula?

Is your response to have all Conditional Formatting Formulas or Cell Formulas?
 
Upvote 0
Why Three formulas for Conditional Formatting? I need to have this dynamic...where if anytime cell value changes to xyz or blank (range C3:E11) then have that row highlighted
 
Upvote 0
How about
Fluff.xlsm
ABCDE
1
2NameJanFebMar
31Alper871199125981
42Burrows7577119309924
53Chandler10310107909763
64Colby1029010335xyz
75Frantz1081562727561
86Gonzalez7001xyz7806
97Kyle1185482888432
108Little640910608
119Long613251048439
12
13
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:E20Expression=AND($A3<>"",OR(COUNTIFS($C3:$E3,"xyz"),COUNTIFS($C3:$E3,"")))textNO
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Why Three formulas for Conditional Formatting? I need to have this dynamic...where if anytime cell value changes to xyz or blank (range C3:E11) then have that row highlighted

It isn't really 3 formulas. When I first built the worksheet I copied the CF to two additional sections.
I did a center row first, then the section above that and then the bottom section.

I realized that and posted a picture with only 1 formula, but I forgot to repost an xl2bb. I regret the confusion.
 
Upvote 0
It isn't really 3 formulas. When I first built the worksheet I copied the CF to two additional sections.
I did a center row first, then the section above that and then the bottom section.

I realized that and posted a picture with only 1 formula, but I forgot to repost an xl2bb. I regret the confusion.
One of the problem I came across was if blank cell was replaced by number then the highlight goes away as expected but if I type a characters (ie xyx) then the highlight remains. I only want it to highlight the row if it contains blank cell.

NA
 
Upvote 0
One of the problem I came across was if blank cell was replaced by number then the highlight goes away as expected but if I type a characters (ie xyx) then the highlight remains. I only want it to highlight the row if it contains blank cell.

NA


I'm not sure what you mean.... here is the original data with conditional formatting:
Mr excel questions 53.xlsm
ABCDEFGHIJ
1123
2NameJanFebMarNameLongCF RuleCF Rule Text
31Alper871199125981FALSE=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
42Burrows7577119309924FALSE
53Chandler10310107909763FALSE
64Colby 10335xyzTRUE
75Frantz1081562727561FALSE
86Gonzalez7001xyz7806TRUE
97Kyle1185482888432FALSE
108Little640910608TRUE
119Long613251048439FALSE
nsa1
Cell Formulas
RangeFormula
J3J3=FORMULATEXT(I3)
I3:I11I3=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:E11Expression=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0textNO



Here is when I put a value in cell D10:
(Note that the conditional formatting rule does not activate)

Mr excel questions 53.xlsm
ABCDEFGHIJ
1123
2NameJanFebMarNameLongCF RuleCF Rule Text
31Alper871199125981FALSE=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
42Burrows7577119309924FALSE
53Chandler10310107909763FALSE
64Colby 10335xyzTRUE
75Frantz1081562727561FALSE
86Gonzalez7001xyz7806TRUE
97Kyle1185482888432FALSE
108Little6409465410608FALSE
119Long613251048439FALSE
nsa1
Cell Formulas
RangeFormula
J3J3=FORMULATEXT(I3)
I3:I11I3=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
 
Upvote 0

Forum statistics

Threads
1,215,408
Messages
6,124,727
Members
449,185
Latest member
ekrause77

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