Excel 2010 conditional formatting ignoring blanks in 2 columns

chasidar

New Member
Joined
Jan 6, 2011
Messages
9
Hi! I am trying to do conditional formatting so that if the date in a specific cell in column O is less than or equal to the date in the specific cell in column M, the cell in column O is filled in. I want to ignore blanks in both columns.
I started with this formula: =$O2<=$M2 but that fills in the blanks as well.

So I tried =AND(=$O2<=$M2,$O2<>"") but this highlights cells where the cell in column M is blank

So I tried =AND(=$O2<=$M2,$O2<>"",$M2<>"") but this gives me the same result.

Any assistance would be appreciated

Fern
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thanks Marcelo. Unfortunately, I get the same result - highlighted cells where the cell column M is blank.
 
Upvote 0
No formulas or numbers, just dates which are formatted as dates. The new version didn't work and I tried the previous again and it colors the blank cells as well.
 
Upvote 0
No formulas or numbers, just dates which are formatted as dates. The new version didn't work and I tried the previous again and it colors the blank cells as well.
Both versions worked for me with dates in M2 and O2 - Excel 2010 using Formula option

So i dont know what else i can do to help you.

M.
 
Upvote 0

Forum statistics

Threads
1,206,710
Messages
6,074,460
Members
446,071
Latest member
Jolon

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