Conditional Formatting on Tables

richtks

New Member
Joined
Jun 1, 2019
Messages
20
Office Version
  1. 365
Platform
  1. Windows
This has worked for me in the past, but I can't for the life of me, get this to work. is it because I'm using tables... ugh...

Delemma...

I want to format ROW-T based on ROW-T's date and ROW-U's text.

Basically - =T2<today(),U2="p", and I want the format to result in "08/02/2024"

I've tried =and($T$2:$T$158<today(),$U$2:$U$158="P") - as well as =and($T2:$T158<today(),$U2:$U158="P")

And eventually, I want to "White out" dates in ROW-T if an "N" or an "A" is in ROW-U
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
then select the range
T2:U100
and use
=AND($T2<today(),$P2="P")
format with strikethrough

XL2BB not showing the strickthrough

and for white out
use
=OR($U2="A",$U2="N")



Book9
TU
1Column1Column2
21/1/24
31/2/24
41/3/24
51/4/24p
61/5/24p
71/6/24
81/7/24
91/8/24
101/9/24
111/10/24p
121/11/24
131/12/24
141/13/24
151/14/24p
161/15/24
171/16/24
181/17/24
191/18/24
201/19/24
211/20/24p
221/21/24
231/22/24
241/23/24
251/24/24
261/25/24
271/26/24
281/27/24
291/28/24
301/29/24
311/30/24
321/31/24
332/1/24
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
T1:U33Expression=AND($U1="P",$T1<TODAY())textNO


Book9
TU
1Column1Column2
21/1/24
31/2/24
41/3/24
51/4/24p
61/5/24p
71/6/24
81/7/24
91/8/24a
101/9/24a
111/10/24p
121/11/24
131/12/24
141/13/24
151/14/24p
161/15/24
171/16/24
181/17/24n
191/18/24n
201/19/24
211/20/24p
221/21/24
231/22/24
241/23/24
251/24/24
261/25/24
271/26/24
281/27/24
291/28/24
301/29/24
311/30/24
321/31/24
332/1/24
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
T1:U33Expression=OR($U1="N",$U1="A")textNO
T1:U33Expression=AND($U1="P",$T1<TODAY())textNO
 

Attachments

  • Screenshot 2024-08-02 at 14.40.27.png
    Screenshot 2024-08-02 at 14.40.27.png
    127.4 KB · Views: 3
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,171
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