Using IF/Then statements and Conditional Formatting

ehall70

New Member
Joined
Jan 26, 2023
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I want to create a conditional rule on the following table that will color column E in the following ways:

If Column D is <= TODAY = Green
If Columns D is >TODAY < TODAY +14 = Yellow
If Column D is >TODAY +14 = Red

I am not sure how to do this and I need to be apply to multiple worksheets. The cell in column E should follow the rules even if it is blank. I worked it out once the dates are filled in, but would like to do it even if they are blank

Collect Updates From Business (C)DE
Expected Start DateExpected End DateRec'd From Owner
12/16/2022​
1/20/2023​
12/16/2022​
2/3/2023​
12/16/2022​
1/20/2023​
12/16/2022​
1/20/2023​
01/19/23​
12/16/2022​
2/3/2023​
12/16/2022​
2/3/2023​
12/16/2022​
2/17/2023​
12/16/2022​
1/20/2023​
12/16/2022​
2/17/2023​
12/16/2022​
2/17/2023​
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDE
1Expected Start DateExpected End DateRec'd From Owner
216/12/202220/01/2023
316/12/202203/02/2023
416/12/202220/01/2023
516/12/202220/01/202319/01/2023
616/12/202203/02/2023
716/12/202203/02/2023
816/12/202217/02/2023
916/12/202220/01/2023
1016/12/202217/02/2023
1116/12/202217/02/2023
12
13
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E:EExpression=AND(ISNUMBER(D1),D1>TODAY()+14)textNO
E:EExpression=AND(D1>TODAY(),D1<=TODAY()+14)textNO
E:EExpression=AND(D1<=TODAY(),D1<>"")textNO
 
Upvote 0
very close I think. In the scenario I envison, all cells in E would currently be green since non of those dates meet the rule of > D+14 or more
 
Upvote 0
I would E6 be green, the date in D6 is greeter than today, but less the Today+14
 
Upvote 0
Today is not greater than 03Feb2023. To be yellow it would be 04Feb23 - 17Feb23 and red would be anything beyond 18Feb23
 
Upvote 0
In that case just change the D1 to E1 in all the formulae
 
Upvote 0

Forum statistics

Threads
1,215,177
Messages
6,123,475
Members
449,100
Latest member
sktz

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