How to make cells in one column change fill colors base off of two conditions

dstimpson

New Member
Joined
Nov 23, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hello,

I am looking to have a column of dates (column G) fill GREEN based off the conditions:
1. If there is a "P" (stands for portables) in column F
2. If the date listed in column G is over one year old (365 days+)

I am also looking to have the same column of dates (column G) turn GREEN based off the conditions:
1. If there is a "RI" in column F
2. If the date listed in column G is over 6 months

And vis versa for each but the columns would be turning RED if less than 1 year/6 months respectively

I appreciate any help!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Rule for green, select entire column and add rule using a formula:
This will also take leap year into account.
Excel Formula:
=OR(AND(F1="P",G1<DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())),AND(F1="RI",G1<DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))))

Rule for red:
Excel Formula:
=OR(AND(F1="P",G1>=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())),AND(F1="RI",G1>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))))

Adjust the "<" and ">=" signs for your specific needs
 
Upvote 0
col.H has the # months of the date used.
Use Conditional Format in the cell:

condition: Format values where this condition is true
value: =AND($H2>6,$F2="RI")
fill color: green
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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