Conditional Formatting using finish date and % complete

mln5446

New Member
Joined
Jul 7, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello...
I have read multiple threads and tried several different formulas mentioned to conditionally format worksheet but none are doing it right on all the cells

I would like to format column F based on the finish date being greater, less or equal to Today, and using the % complete in column F. Below is what i was trying to do and the formula I attempted and the result

1. If the finish date is within two weeks of Today and % complete less than 100% I would like amber =IF(AND(E16>TODAY()+14,F16<0.9),1,0)
2. If the finish date is greater than two weeks from today and % complete less than 100% green =IF(AND(E16>TODAY()+"",F16<0.9),1,0)
3. If the finish date is earlier (i.e. late) than today and % complete less than 100% red =IF(AND(E16<TODAY(),F16<1),1,0)
4. If the finish date is earlier than today and % complete 100% green =IF(AND(E16<TODAY(),F16=1),1,0)


For the Amber in one instance due date is the 7th of Aug and today is the 7th of July. I should not get amber, but should get Green using 2. above.

If better to use Now vs Today and or I have something placed wrong would appreciate the help.



1625642436959.png
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

StephenCrump

MrExcel MVP
Joined
Sep 18, 2013
Messages
4,242
Office Version
  1. 365
Platform
  1. Windows
Welcome to the Forum!

Is this closer to what you're looking for:

1. Format GREEN
2. Conditional format RED, using formula: =AND(E16<=TODAY(),F16<1)
3. Conditional format AMBER, using formula: =AND(E16>TODAY(),E16<=TODAY()+14,F16<1)
 

Toadstool

Well-known Member
Joined
Mar 5, 2018
Messages
1,907
Office Version
  1. 2016
Platform
  1. Windows
Hi Min5446,

Is this how you want the rules expressed?

Min5446.xlsx
EF
15Finish% Complete
1607-Jul-210%
1706-Jul-210%
1801-Jun-21100%
1906-Jul-210%
2007-Aug-210%
21
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F16:F9999Expression=IF(AND(E16<>"",E16<TODAY(),ROUND(F16,2)=1),1,0)textNO
F16:F9999Expression=IF(AND(E16<>"",E16<TODAY(),F16<1),1,0)textNO
F16:F9999Expression=IF(AND(E16<>"",E16>TODAY()+14,F16<1),1,0)textNO
F16:F9999Expression=IF(AND(E16<>"",E16>=TODAY(),E16<=TODAY()+14,F16<1),1,0)textNO
 

mln5446

New Member
Joined
Jul 7, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Good Day
Hi Min5446,

Is this how you want the rules expressed?

Min5446.xlsx
EF
15Finish% Complete
1607-Jul-210%
1706-Jul-210%
1801-Jun-21100%
1906-Jul-210%
2007-Aug-210%
21
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F16:F9999Expression=IF(AND(E16<>"",E16<TODAY(),ROUND(F16,2)=1),1,0)textNO
F16:F9999Expression=IF(AND(E16<>"",E16<TODAY(),F16<1),1,0)textNO
F16:F9999Expression=IF(AND(E16<>"",E16>TODAY()+14,F16<1),1,0)textNO
F16:F9999Expression=IF(AND(E16<>"",E16>=TODAY(),E16<=TODAY()+14,F16<1),1,0)textNO

Good Day. Thank you for the support. As you presented it that is how I would like it to appear, however, I still am having some cells not reflect the conditions. I am checking the date formats as it seems like this may have impact, although not sure exactly why.

Thank you
 

Toadstool

Well-known Member
Joined
Mar 5, 2018
Messages
1,907
Office Version
  1. 2016
Platform
  1. Windows
I am checking the date formats as it seems like this may have impact, although not sure exactly why.
There can be a few challenges with dates:
  1. My PC is from the USA so interprets 1/6/2021 as 6th January 2021, mm/dd/yyyy. Yours may differ if you used my data example and your PC uses dd/mm/yyyy.
  2. It may be your dates are text containing some artifacts preventing calculations. Find an unused cell and enter =E16+1 and it should give the date of the day after that shown in E16.
  3. Select a date cell and check if it show hours and minutes. If it does then calculations may be off by one day as TODAY() gives today's date at 0 hours and 0 minutes.
 

Forum statistics

Threads
1,140,925
Messages
5,703,205
Members
421,280
Latest member
Jaycee01

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
Top