Conditional Format Current Month and Those Prior

brenda1996

New Member
Joined
Aug 30, 2018
Messages
29
Greetings! First I would like to say thank you for taking the time to look at my issue and offer a solution, your help is greatly appreciated. I am looking for help in creating a formula or direction on how to highlight dates in a cell(s) using Conditional Formatting for which are in the current month and those prior. Seems like a simply task but I cannot wrap my mind around getting there. I have tried EOMONTH, TODAY and DATE in various forms in formulas and am having no success, ready to throw in the towel. Thought I'd try here for some expert help. Thank you! Tina
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the Board!

For a date in cell G1, the Conditional Formatting Formula would look like:
Code:
=G1<=EOMONTH(TODAY(),0)
 
Upvote 0
Welcome to the Board!

For a date in cell G1, the Conditional Formatting Formula would look like:
Code:
=G1<=EOMONTH(TODAY(),0)

Oh my gosh, I can't believe I was not able to see that! So simple! It worked, thank you so much Joe! I can't thank you enough, have get day!
 
Upvote 0
You are welcome.
Glad I was able to help!:cool:
 
Upvote 0
You are welcome.
Glad I was able to help!:cool:

Yes, the formula worked great however now I just noticed all the way to the end of my data (5000 lines) all empty cells are also colored. Would prefer them to stay default white. Have tried another format to change cell white for fill and text if error or zero value and are in order of preference but cells remain colored. Am I simply stuck with this? Thanks again for your help.
 
Upvote 0
Just add a condition to see if there is a value in G1, i.e.
Code:
=AND(G1>0,G1<=EOMONTH(TODAY(),0))
 
Last edited:
Upvote 0
Just add a condition to see if there is a value in G1, i.e.
Code:
=AND(G1>0,G1<=EOMONTH(TODAY(),0))

Wow! You are awesome! I wish I had your knowledge. Worked just as you laid it out. Going to study it now to learn how it exactly works. Thanks again for helping me keeping Excel fun! Brenda
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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