Conditional formatting help?

cornflks1979

New Member
Joined
Feb 14, 2010
Messages
1
Hello, my first time posting a thread up here so if you don't understand what I am asking for I will and try to explain better.

So I have dates in my worksheet going from H2:M2. The dates are at random intervals. How can I make that cell turn green when it comes within the month of that date in those cells? Then turn red once it hits the exact date or goes over in those cells?

I am not sure if I explained it ver good but if you have any questions about this you can let me know and I can send you the worksheet I have and try to explain it better then. Thanks for the help.

Mark
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
If you know how to do conditional formatting in general, you would choose "formula is" and enter something like this:

Code:
=MONTH(H2)=MONTH(TODAY())
and format green

then do same thing but with a less than sign before the second MONTH
and format red
 
Upvote 0
If you want the dates within the present month (but less than today)to turn green, and today's date and greater (of the same month), to turn red try these:

In the conditional formatting create 2 separate formulas:

Code:
=(OR(H2=(TODAY()),AND(MONTH(H2)=MONTH(TODAY()), DAY(H2)>(DAY(TODAY())))))
set for Green

Code:
=(AND(MONTH(H2)=MONTH(TODAY()), DAY(H2)<(DAY(TODAY()))))

Set for Red
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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