Conditional Format

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
1,124
Office Version
  1. 365
Platform
  1. Windows
Good Day Everyone!

Wanted to provide a CF for cell G11 to turn an interior red if and only if, if a value is entered into its row between H11: AJ11, when G11 is blank.


Currently I have:

View attachment 116911



Would like to see this CF applied here:
View attachment 116912

Also, I'd like for the CF of G11 from the interior red cell to go away when a value has been entered into its interior cell red, as in:


View attachment 116913





Please let me know!

Thank you!
pinaceous
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Another option is "" is a possibility in either G11 or H11:AJ11 but considered to be blank.
Excel Formula:
=AND(G11="",COUNTIFS(H11:AJ11,"")<>COLUMNS(H11:AJ11))
 
Upvote 0
Solution
Another option is "" is a possibility in either G11 or H11:AJ11 but considered to be blank.
Excel Formula:
=AND(G11="",COUNTIFS(H11:AJ11,"")<>COLUMNS(H11:AJ11))
Hey Alex Blakenburg,

Out of all of the codes thus far, this one is really, really close!

However, in your code I expected the cell of G11 to turn an interior red color, when an entry has been made/entered into the range of H11:AJ11, when G11 is blank.

CF apture4 .JPG



As in:

CF apture5 .JPG




Please let me know!

Thank you!

Pinaceous
 
Upvote 0
The code from Alex Blakenburg is working. Maybe you entered something wrong.
Book1.xlsm
ABCDEFGHIJ
1111
122
133
144
155
166
177
Sheet5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G11Expression=AND(G11="";COUNTIFS(H11:AJ11;"")<>COLUMNS(H11:AJ11))textNO

Book1.xlsm
ABCDEFGHIJ
11151
122
133
144
155
166
177
Sheet5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G11Expression=AND(G11="";COUNTIFS(H11:AJ11;"")<>COLUMNS(H11:AJ11))textNO
 
Upvote 0
Hi *Sergius!

Thank you so much for your posting!

Yes, it did work and I'm marking post#12 as a solution😉

I did not realize that the range was G11 where, I was putting H11:AJ11.
 
Upvote 0
Hi *Sergius!

The only issue I see now is that G11 provides an interior red cell when a value is entered into it.



Can you please provide that if a value is entered into G11 that if it has an interior red cell in it that it will disappear?



Here is a screenshot of G11’s interior red cell:

1726694507355.png


Please let me know!



Thank you!

pinaceous
 

Attachments

  • Capture7 .JPG
    Capture7 .JPG
    115.2 KB · Views: 2
Upvote 0
Showing us what you're using in the conditional formatting screens is more useful than showing us a cell coloured red. Can you take screenshots like the ones I had in post #10? Also the formulas you're using in G11 and/or H11 if any.
 
Upvote 0
Hello Pinaceous!
If you look closely at the conditional formatting formula for cell G11, you will see that everything works as you intended in your first post.
for cell G11 to turn an interior red if and only if, if a value is entered into its row between H11: AJ11, when G11 is blank

G11 from the interior red cell to go away when a value has been entered into its interior cell red
Confirmation that it works as you intended, post #14
 
Upvote 0
Good Day,

What exactly is the meaning of :


VBA Code:
Selection.FormatConditions(1).StopIfTrue = False

in the Conditional Formatting formula?


Please let me know.

Thank you!
pinaceous
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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