Last Day of the Month Conditional formatting

aravindkm

Board Regular
Joined
Feb 9, 2017
Messages
50
Hi All,

Could anyone please help in Conditional format the Last day of the month with Cell Colour as Blue.

Example as below.

Date19202122232425262728
Should Be in Coloured as Blue
Should Be in Coloured as Blue
Should Be in Coloured as Blue
Should Be in Coloured as Blue
Should Be in Coloured as Blue
Should Be in Coloured as Blue
Should Be in Coloured as Blue

<tbody>
</tbody><colgroup><col><col><col span="9"></colgroup>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Assuming the 19th is in cell B1, this should work as a formula in conditional formatting:
Code:
=DAY(B1)>DAY(C1)
 
Upvote 0
In conditional formatting
Code:
=B1=EOMONTH(DATE(YEAR(B1),MONTH(B1),1),0)
 
Upvote 0
To get the last day of February 2017 you can use this formula
=DAY(EOMONTH(DATE(2017,2,1),0))

So to use it in Conditional Formatting, assuming the days are in B1:K1, do
Select B1:K1
Home > Conditional Formatting > New rule
pick the second option: Format only cells that contains
cell value | is equal to | =DAY(EOMONTH(DATE(2017,2,1),0))

Hope this helps

M.
 
Upvote 0
Assuming the 19th is in cell B1, this should work as a formula in conditional formatting:
Code:
=DAY(B1)>DAY(C1)
try the below formula in conditional formatting . Adjust the cell as per your data
=b1=eomonth(B1,0)
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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