Conditional Formatting on Font.Strikethrough

ormond

New Member
Joined
Apr 25, 2019
Messages
4
I have a pair of conditional formatting rules which don't work as I expected.

The first rule ("Stop if True" is unchecked) applies to $G$4:$G$7402 and sets the cell background color for dates older than today. This w<today()
<today()
<today()
<today()
orks fine.

The second rule (same range) changes the background color back to normal where this formula is true:</today()
</today()
</today()
</today()
<today()
<today()
<today()
<today()


"=G4.Font.Strikethrough"

</today()
</today()
</today()
</today()
<today()
<today()
<today()
<today()
It doesn't happen and I can't work out why. Can anyone see it?</today()
</today()
</today()
</today()
<today()
<today()
<today()
<today()
</today()
</today()
</today()
</today()
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I use Conditional Formatting as:
Menu Home > Conditional Formatting > New Rule.. > Rule Type: Use a formula to determine which cells to format; Edit the Rule Description: =isText(A1); Click Format.. > Tab Font: Effects: check Strikethrough again, it must visible V on check-in > Ok > Ok.
 
Upvote 0
Formulae (including in CF) cannot detect formats, only values.
 
Upvote 0
And "=G4.Font.Strikethrough" is not a valid formula.
 
Upvote 0
I still don't get it. G4.Font.Strikethrough is a Boolean value, this property is set to true or false. I am trying to conditionally format when it is true. In VBA we can set a condition based on a property value, why not in CF?
I guess it might be simpler to write it in VBA based on changing a cell value.
 
Upvote 0
CF requires a formula that you could use in a worksheet. You can't simply use VBA code (that isn't valid code either BTW).
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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