Conditional Formatting - with dates

TG2812

Board Regular
Joined
Apr 15, 2015
Messages
180
Hi,

I have the following table:

TargetJan-17Feb-17Mar-17Mar-18Jun-19Jul-19Sep-19Dec-20
My sales331514161

<tbody>
</tbody>

In the conditional formatting i have entered "if cell in range C2:J2 is less than target cell ($B2) then color in blue" -> $E2<$C$2:$J$2

Any idea of to instruct Excel not to color the cell if dates in the header belong to the past (preferably to embed it in the above condition).

Thank you.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
How about
=AND(C2< $B2,C1 >TODAY())
 
Upvote 0
Hi Fluff,

Thank you very much for your help.
Can you please describe the steps to include your formula into the conditional formatting menu?
 
Upvote 0
Yup
Select C2:J2 (or c2:J & last row) > CF > New Rule > Use a formula > Enter the formula > Format > select your format > Ok > Ok.

If you have more than one row use
=AND(C2<$B2,C$1>TODAY())
 
Upvote 0

Forum statistics

Threads
1,215,406
Messages
6,124,720
Members
449,184
Latest member
COrmerod

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