easy question

cdsaroma

Board Regular
Joined
Feb 5, 2003
Messages
200
I have a cell (I2) that is in this format 5/8/2009
I want to have conditional formatting applied to cell A1 if I2 is the current month and year.

thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
CF formula in A1 is
=TEXT(I2,"mmyy")=TEXT(TODAY(),"mmyy")

Hope that helps..
 

stephen antoine

Board Regular
Joined
Jun 4, 2008
Messages
128
Go to Format -> Conditional Formatting
For Condition 1 change the drop-down to Formula Is
In the formula box put the following:
=MONTH(I2)&YEAR(I2)=MONTH(TODAY())&YEAR(TODAY())

That should work...
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,777
Messages
5,833,643
Members
430,221
Latest member
jmmccormick

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