Formula/Solution/Setup

ana2006bal

New Member
Joined
Sep 21, 2022
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Okay, the table below is an example of what I need but not sure how to write the formula/what setup would be best.

I am trying to figure out the best way to make the status column work correctly. For each row:
if Date 1 is 1 day or less before Date 2 = Red Status
if Date 1 is between 2 day and 7 days before Date 2 = Yellow Status
if Date 1 is greater than or equal to 8 days before date 2 = Green Status

Date 1Date 2Status
1/20/221/21/22Red
1/18/221/21/22Yellow
1/13/221/21/22Green

I was looking at conditional formatting but didn't know if there was a formula or if setting up rules would be best?

Thanks for your input!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Welcome to the Board!

So, if your data above is in the range A1:C4 (where row is the header), here are the three Conditional Formatting Rules (formulas) to set up:
1663789481940.png
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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