Conditional formatting nested if/and/or based on cell vaule date

Kirsty05

New Member
Joined
Nov 2, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi, I've been asked to format a table showing the following:

If N6 contains a date, make the row red.
If K6 and N6 contain dates, make row yellow.
If O6, K6 and N6 contain dates, make row orange.
If P6, K6, N6 and O6 contain dates, make row green.

I'm using Excel 2016.
I've tried everything I can think of and I'm stumped. Any help gratefully received!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Dates are nothing more than numbers, the easiest way would be to count the cells.

Red rule =COUNT($N6)=1
Yellow rule =COUNT($K6,$N6)=2
Orange rule =COUNT($K6,$N6,$O6)=3
Green rule =COUNT($K6,$N6,$O6,$P6)=4

Empty cells or cells with text will not be counted. If the same cells can contain numbers other than dates then it can be difficult to identify which ones are dates.
 
Upvote 0
Dates are nothing more than numbers, the easiest way would be to count the cells.

Red rule =COUNT($N6)=1
Yellow rule =COUNT($K6,$N6)=2
Orange rule =COUNT($K6,$N6,$O6)=3
Green rule =COUNT($K6,$N6,$O6,$P6)=4

Empty cells or cells with text will not be counted. If the same cells can contain numbers other than dates then it can be difficult to identify which ones are dates.
You are an absolute legend, thank you. I was hung up on the dates x
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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