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
52
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
41,826
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
41,826
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,078,516
Messages
5,340,879
Members
399,397
Latest member
VolodimiirSr

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top