conditional formatting with conditions

Graham C1600

Board Regular
Joined
Feb 17, 2018
Messages
96
Office Version
  1. 365
I have a table such as below. I want the following conditional formatting conditions to be met.
WhatDateStatus
Test01/01/2023ongoing
Test 118/01/2023Ongoing
Test 211/01/2023Complete
Scenario 1 - If Cell B2 is = or > than today and Cell C2 is "Ongoing", Cells A2,B2,C2 need to be filled in Red.
Scenario 2 - If Cell B2 is = or < than today and Cell C2 is "Complete", Cells A2,B2,C2 need to be filled in Blue.
Scenario 3 - If Cell B2 is = or < 7 days than today and Cell C2 is "Ongoing", Cells A2,B2,C2 need to be filled in Amber.
Scenario 4 - If Cell B2 is = or < than today by more than 7 days and Cell C2 is "Ongoing", Cells A2,B2,C2 need to be filled in Green.

Hope this makes sense.

Thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try

Change Yellow color to Amber

Book3
ABCDEF
1WhatDateStatus
2Test1/1/2023ongoing
3Test 11/18/2023Ongoing
4Test 21/11/2023Complete
5
6
7
8
9
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:C4Expression=AND($B2>=TODAY(),$C2="Ongoing")textNO
B2:C4Expression=AND($B2<=TODAY(),$C2="Complete")textNO
B2:C4Expression=AND($B2-TODAY()<=7,$C2="Ongoing")textNO
B2:C4Expression=AND($B2-TODAY()>=7,$C2="Ongoing")textNO
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

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