# Flag

#### trsmxb

##### New Member
Hi,

I use an excel spreadsheet for registering complaints. I have a formula set up which calculates "days under management". This reads off the date received, and continues to count until a "date resolved" is entered.

What I would like, is to set up a formula which flags complaints over a certain number of "days under management"

For example,

Complaints 20 days or less
The row would not be highlighted.

Complaints 20-30 days.
Row would become green in colour.

Complaints 30-45 days.
Row would become orange in colour.

Complaints 45 days and over
Row would become Red in colour.

Are you able to assist me with this query? It would be most appreciated.

Thanks,

### Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
trsmxb said:
Hi,

I use an excel spreadsheet for registering complaints. I have a formula set up which calculates "days under management". This reads off the date received, and continues to count until a "date resolved" is entered.

What I would like, is to set up a formula which flags complaints over a certain number of "days under management"

For example,

Complaints 20 days or less
The row would not be highlighted.

Complaints 20-30 days.
Row would become green in colour.

Complaints 30-45 days.
Row would become orange in colour.

Complaints 45 days and over
Row would become Red in colour.

Are you able to assist me with this query? It would be most appreciated.

Thanks,

I'm assuming that you have a date field that is populated when handed to management.

Select the entire column range, say B4:B2000.
Select: format - conditional formatting and enter the following:

you will need to change cell value is to formula is.

Condition 1 - Formula is - =NOW()-B4>45 Set format to Red Font or Pattern fill.
Condition 2 - Formula is - =NOW()-B4>30 Set format to Yellow Font or Pattern fill.
Condition 3 - Formula is - =NOW()-B4>20 Set format to Green Font or Pattern fill.

This will format the entire selected range with the above conditional formatting.

Only three conditions are available. If none of the conditions are met, the cell will remain unchanged with the current format.

Mike

Replies
1
Views
766
Replies
1
Views
53
Replies
22
Views
402
Replies
3
Views
729
Replies
5
Views
398

1,218,945
Messages
6,145,363
Members
450,611
Latest member
JodiWe

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