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

#### jms479

##### New Member
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!!

### Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

#### szita2000

##### Board Regular
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

</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)

</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
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%
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D21. / Formula is =AND(D2<1)Abc
D22. / Formula is =AND(D2<1)Abc

Last edited:

#### jms479

##### New Member
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

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.

 D E 1 Date % 2 6/10/2019 85% 3 12/10/2019 75% 4 25/12/2019 10% 5 23/09/2019 100% 6 15/10/2019 98%

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

Conditional formatting
 Cell Nr.: / Condition Format D2 1. / Formula is =AND(D2

<tbody>
</tbody>

<tbody>
</tbody>

Excel tables to the web >> Excel Jeanie HTML 4

#### jms479

##### New Member
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
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.

Replies
7
Views
59
Replies
4
Views
164
Replies
8
Views
358
Replies
3
Views
80
Replies
5
Views
260

1,129,557
Messages
5,637,048
Members
416,955
Latest member
Gohar hussain

### 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.

### Which adblocker are you using?

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

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