Conditional Format of Current Month

ir121973

Active Member
Joined
Feb 9, 2008
Messages
371
Hi, I wonder whether someone may be able to help me please.

I'm using the following three formulas to perform conditional formatting on cell B when cell A contains a date. Each condition depicts a cell colour depending on the following:

Within The Current Month

=datevalue(day(today())&"/"&month($q$3)&"/"&year($q$3))=(today())

Prior To The Current Month
=datevalue(day(today())&"/"&month($q$3)&"/"&year($q$3))<(today())

Greater Than The Current Month
=datevalue(day(today())&"/"&month($q$3)&"/"&year($q$3))>(today())

It took me so time to put this together, but I've one other condition which I need to add to the above which I'm having difficulty in solving.

In addition to setting the cell colour of cell B, i would also like to set a text value.

So if the date is:

Within The Current Month, I would like the cell to say "
Act'ls",
Prior To The Current Month, I would like the cell to say "Act'ls", and
Greater Than The Current Month, I would like the cell to say "A'able"

As I said earlier, it's left me a little stumped, but I just wondered whether someone could possibly take a look at this please and offer a little guidance on how I may go about this.

Many thanks and kind regards

Chris
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
You could enter a formula in B1 and copy down to generate text.

B1: =IF(A1<=Compare_Date,"Act'ls","A'able")

where Compare_Date is your date formula. Better yet, put =DATE(YEAR(Q3),MONTH(Q3),DAY(TODAY())) in a cell named 'Compare_Date' then use that name in your formula and your conditional formatting formulas.
 
Upvote 0
Hi @Scott R, thank you very much for taking the time to reply to my post and post the solution, it works a treat.

Many thanks and kind regards
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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