Change color of current month only...

Kutar

New Member
Joined
Feb 7, 2010
Messages
3
Thank you for your help in the past!

Step 1: In cell B1, my VBA puts the # of the current month using MONTH(TODAY()). This can change if you know a better way.

Step 2: In column B2:B20, there are random 3 letter months
B2 = FEB
B3 = MAR
B4 = AUG
B5 = FEB
B6 = DEC
B7 = JAN
B8 = AUG
B9 = JAN
etc

Step 3: Knowing that the number in B1 (from Step 1) will change each month, I'm trying to get the current month(s) in B2:B20 to change its font to BOLD RED color. So above, the two FEB should turn to BOLD RED color and the rest would remain unchanged..


Can you help please?
Thank you,
Kutar

 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
You don't need B1 at all...

In conditional formatting for cell B2, select "Formula is"

=MONTH("1-"&B2)=MONTH(TODAY())
 
Upvote 0
select B2:B20, and choose conditional formatting from the format menu

In the dialog, choose 'formula is' and set the formula to =B1

Then set your format to whatever colour etc you need

HTH
 
Upvote 0
Hi and welcome to the board!!
Other than for reference, cell B1 is irrelevent!!
Use Conditional Formatting for B2:B20, Formula Is
Code:
=B2=TEXT(TODAY(),"mmm")

lenze
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,933
Members
449,480
Latest member
yesitisasport

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