Conditional Formatting in a Table

adambc

Board Regular
Joined
Jan 13, 2020
Messages
192
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I have a table in which I've applied Conditional Formatting to a column using a DATEDIF formula based on another column ie =DATEDIF(C2,TODAY(),"M")>54 fills D2 red applied to $D:$D (I have a top level =TRUE no fill $1:$1 Stop If True to exclude the header) ...

But this applies the CF to the whole column ie rows without values beyond the last row in the table ...

I can't use Applies to $D:$Dnnn where nnn is the last row in the table, because the table constantly grows/shrinks ...

Is there a way to apply the CF ONLY to rows with a value in column C?

Thanks ...
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,319
Office Version
  1. 365
Platform
  1. Windows
Is your table a structured table or just a range?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,319
Office Version
  1. 365
Platform
  1. Windows
In that case as long as you select the entire data column (less the header) & then create the CF rules, the applied range should change to match the table.
 
Solution

adambc

Board Regular
Joined
Jan 13, 2020
Messages
192
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
OK, thought I'd done that, but I'll give it another go ...

Thanks as always ...

PS; will mark as resolved
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,319
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,141,204
Messages
5,704,956
Members
421,373
Latest member
dalziel079

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
Top