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
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
As you can see in your example...row#8 has no blank cell and only "xyx" but it still highlights...when it shouldn't...I only want it highlighted when there is empty cell in a row
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
As you can see in your example...row#8 has no blank cell and only "xyx" but it still highlights...when it shouldn't...I only want it highlighted when there is empty cell in a row
i'm confused, your OP says this:
Need help with conditional formatting formula and apply for highlighting a row that contains either text "xyx" or blank cell/cells
The formula
Excel Formula:
=SUM((--("xyz"=$C3:$E3))+(--(""=$C3:$E3)))>0
is an OR formula.

Or are you asking for 2 different rules, a color for xyz and a different color for blanks, if so, try this:

Row 4 has a space in one cell, so it is not considered blank. But you do need to determine which rule takes priority when you have both blank and xyz in the row.

Cell Formulas
RangeFormula
I3:I11I3=SUM(--("xyz"=$C3:$E3))>0
J3:J11J3=SUM((--(""=$C3:$E3)))>0
K3:L11K3=FORMULATEXT(I3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:E11Expression=SUM((--(""=$C3:$E3)))>0textNO
A3:E11Expression=SUM(--("xyz"=$C3:$E3))>0textNO
 
Upvote 0
Yeah...sorry...that was a mistake...I want only the blank cell to highlight
 
Upvote 0
Yeah...sorry...that was a mistake...I want only the blank cell to highlight
SO, does the PINK formatting rule above answer your question? If not, what else is there to your question?
 
Upvote 0
Oops...sorry...got it...I can't even believe I post this reply to you. Sorry about it buddy Thanks. I hope you can help with following thread though...
 
Upvote 0
Oops...sorry...got it...I can't even believe I post this reply to you. Sorry about it buddy Thanks. I hope you can help with following thread though...
There was one issue though...When I added additional rows then this formula didn't work as expected for those rows as it worked for the others...

ie
Andy is partially highlighted? Why? The current formula is
=AND($A3<>"",COUNTIFS($C3:$E3,""))
1690396437973.png
 
Upvote 0
Unless you are using tables or have some kind of VBA code, excel doesn't know that the data you are typing into an adjacent cell is related to the cell next to it.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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