Conditional formatting cells by due date usin tip054

Lewis

Board Regular
Joined
Feb 16, 2002
Messages
50
I have used the method in http://www.mrexcel.com/tip054.shtml
to set up cells showing due dates. However when a cell contains nothing it defaults to the first conditional format (red). Is there a way to use the last available conditional format statement to make empty cells colourless and any other date a third colour say yellow
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
with cell e2 blank,

=AND(LEN(E2),(E2-TODAY())<6)

returns false, whereas

=(E2-TODAY())<6

returns true, because at today's date,

=E2-TODAY()

returns -37555. Reviewing the tip you mentioned, the suggestion solution should work, give that CF applies the format of the first true condition of the set...maybe check the formulas again, as CF has an odd habit of sticking quote marks round the formulas for no obvious reason.
paddy
 
Upvote 0

Lewis

Board Regular
Joined
Feb 16, 2002
Messages
50
Works fine and leave me with the third condition which I set to =LEN(E2)>1 to give me a different colour for any other date
 
Upvote 0

Forum statistics

Threads
1,191,718
Messages
5,988,275
Members
440,146
Latest member
rgomes8

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
Top