Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

jms479

New Member
Joined
Oct 7, 2019
Messages
4
I am doing project management and schedule planning and am looking for method of easily highlighting cells when something is overdue or soon-to-be-due.

To simplify my question, say I have two columns, one with date's (expected task finish date) and one with % complete:
(Example: D2: 10/06/2019; E2: 85%)
(Example: D3: 10/12/2019; D3: 75%)
(Assume today's date is 10/07/2019).

How can I use conditional formatting so that any cell in column D would have different background/font color based on the planned finish date in relation to today's date and in relation to task completion percentage?

The criteria we'd like to use:
1) If task target finish < today's date AND % < 100%, turn cells red
2) If task target finish is WITHIN 2 weeks of today's date AND % < 90%, turn cells orange.

Any help with this where I could use formatting and not need some other column would be so amazing!!
 

szita2000

Board Regular
Joined
Apr 25, 2012
Messages
54
Re: Help with Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

Hi and welcome to the board.

The way I learned it is conditional formattings expecting a TRUE or FALSE evaluation from you.

If the formula you describing the conditional formatting is true, then it will do the formatting if you evaluate it to false it won't.

In the formula below you can see this true or false represented by the 1,0 at the end of the IF formula.

If you want to evaluate an IF formula for multiple conditions, then you have to use the AND or the OR formula.
These guys will turn your IF formula into a multiple "question" formula.

This is how I construct my conditional formulas:
Down below, are your data to evaluate (Column D:E)
Then the conditional formulas in F2 and F3.

You construct your formulas next to the range you want to format then you copy this formula, from the formula bar itself to the conditional formatting.

DEFG
206/10/201985%1Red
320/10/201989%1Orange

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F2=IF(AND(D2<NOW(),E2<1),1,0)
F3=IF(AND(D3<NOW()+14,E3<0.9),1,0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Please note that I did not lock the formulas in any way, if you need to cover a bigger range then you will need to lock the formulas.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,244
Office Version
365
Platform
Windows
Re: Help with Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

Welcome to the MrExcel board!

Try these Conditional Formatting rules. They need to end up in the correct order.

Excel Workbook
DE
1Date%
26/10/201985%
312/10/201975%
425/12/201910%
523/09/2019100%
615/10/201998%
CF Tasks
Conditional Formatting
CellConditionFormat
D21. / Formula is =AND(D2<1)Abc
D22. / Formula is =AND(D2<1)Abc
 
Last edited:

jms479

New Member
Joined
Oct 7, 2019
Messages
4
Re: Help with Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

Thank you so much for your help on this!


Hi and welcome to the board.

The way I learned it is conditional formattings expecting a TRUE or FALSE evaluation from you.

If the formula you describing the conditional formatting is true, then it will do the formatting if you evaluate it to false it won't.

In the formula below you can see this true or false represented by the 1,0 at the end of the IF formula.

If you want to evaluate an IF formula for multiple conditions, then you have to use the AND or the OR formula.
These guys will turn your IF formula into a multiple "question" formula.

This is how I construct my conditional formulas:
Down below, are your data to evaluate (Column D:E)
Then the conditional formulas in F2 and F3.

You construct your formulas next to the range you want to format then you copy this formula, from the formula bar itself to the conditional formatting.

DEFG
206/10/201985%1Red
320/10/201989%1Orange

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F2=IF(AND(D2<now(),e2<1< font="">),1,0</now(),e2<1<>)
F3=IF(AND(D3<now()+14,e3<0.9< font="">),1,0</now()+14,e3<0.9<>)

<tbody>
</tbody>

<tbody>
</tbody>



Please note that I did not lock the formulas in any way, if you need to cover a bigger range then you will need to lock the formulas.
 

jms479

New Member
Joined
Oct 7, 2019
Messages
4
Re: Help with Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

Thank you so much for your help on this!

Welcome to the MrExcel board!

Try these Conditional Formatting rules. They need to end up in the correct order.

CF Tasks

DE
1Date%
26/10/201985%
312/10/201975%
425/12/201910%
523/09/2019100%
615/10/201998%

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:87px;"><col style="width:56px;"></colgroup><tbody>
</tbody>

Conditional formatting
CellNr.: / ConditionFormat
D21. / Formula is =AND(D2<TODAY(),E2<1)Abc
D22. / Formula is =AND(D2<TODAY()+14,E2<1)Abc

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

jms479

New Member
Joined
Oct 7, 2019
Messages
4
Re: Help with Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

Do I need to do something to close a thread once my issue is resolved? Want to make sure I help keep this board clean and abide by the best practices and preferences of this community.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,244
Office Version
365
Platform
Windows
Re: Help with Formula to Conditionally Format Cells where Planned Finish Date < Today's Date AND % Complete is < 100%

Thank you so much for your help on this!
You're welcome.


Do I need to do something to close a thread once my issue is resolved?
Just a reply to say you are satisfied, like you have done. We don't formally close threads in this forum as it may well be that somebody else comes along afterwards and posts an even better solution. :)


Want to make sure I .. abide by the best practices and preferences of this community.
One thing to be careful of is fully quoting long(ish) posts like you did in posts 4 and 5. They tend to make the thread harder to read/navigate. Just quote smaller relevant parts only or just enough so readers know who or which post you are referring to.
 

Forum statistics

Threads
1,082,065
Messages
5,362,976
Members
400,702
Latest member
oliviaalx

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top