Conditional Formatting Last working day of month

PCCS13

New Member
Joined
Jan 17, 2012
Messages
30
I need to add a formula which determines if the following (in column J):

If F2 is empty, colour J2 cell red.
If date in J2 is earlier than the last day of this month, colour J2 red.
If cell J2 is empty - colour J2 red.

The formula would then be applied for the whole of column J
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
This will give you the last working day of the current month.

=OR(F2="",J2="",J2 < WORKDAY(EOMONTH(TODAY(),0)+1,-1,Z1:Z20))

This requires the analysis toolpack from Tools - Addins.
Z1:Z20 is an OPTIONAL range of Holiday Dates that should be considered NON working days.

Unfortunately, you can't use this function in conditonal formatting (at least not in XL2003)
So you'll have to put that formula in it's own cell, say G2 for example.
Then in conditional formatting use
=OR($F2="",$J2="',$J2<$G$2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,068
Members
449,091
Latest member
remmuS24

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