Conditional Formatting Help

MollyB

New Member
Joined
Oct 7, 2009
Messages
20
Hi,

I have a simple spreadsheet with the following columns:

Cust Name/Cust No/Planned Order Date/Actual Order Date

I need the customer record to be formatted to be red if no date exists in either date column, amber if there's a date in planned order date (but not actual order date) and green if there's a date in actual order date, even if there's also a date in planned order date.

Is this possible and if so can someone suggest a way of doing it?

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
highlight columns A:D and Format>Conditional Formatting
Change to "Formula Is" then enter these

=IF(AND($A1<>"",$C1="",$D1=""),TRUE)
Set to Red
=IF(AND($C1<>"",$D1=""),TRUE)
Set to Amber
=IF(AND($C1<>"",$D1<>""),TRUE)
Set to Green

That should do what you need.
 
Upvote 0
Well, this won't highlight the whole row, but it will give you a status box. I assume that Planned date is in column C and Actual date is in column D. Just copy this formula down in column E:

=IF(NOT(ISBLANK(D2)),3,IF(NOT(ISBLANK(C2)),2,1))

Obviously I started in row 2, you might need to update the row numbers for whatever row your data starts on. I also made the assumption that values were either dates or blanks.

Then use your normal conditional formatting to make cells with 3 green, 2 amber, and 1 red.

It might not be super elegant but it's quick and allows you to scan the list for amber and red. It has the side benefit of making your list sortable by status as well, with the most urgent items at the top.
 
Upvote 0
Many thanks for the responses...think I'll go with the second option, as it would be useful to be able to sort the data.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,835
Messages
6,121,880
Members
449,057
Latest member
Moo4247

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