Conditional Formatting on Cell that is outside the 365 days warranty end date

gplans

New Member
Joined
May 30, 2019
Messages
41
I am trying to set some conditional formatting on cell that are outside the 365 days warranty end date that is entered into the cell.

19/07/2019Within warranty
30/11/2018Highlighted cell warranty ended
16/06/2019Within warranty
19/07/2019Within warranty

<colgroup><col><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>

Cant seem to find anything that matches my criteria. Any help thanks.
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
delete first two rules and re-enter them again (on the first and second positions)
check if your dates are real dates not a text dates
 
Last edited:

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

gplans

New Member
Joined
May 30, 2019
Messages
41
delete first two rules and re-enter them again (on the first and second positions)
check if your dates are real dates not a text dates


So I re-did the lines like you said and still it does not work 100%. They are dates but the dates are derived from a formula.

BTW I did use the formula =ABS(TODAY()-r3)>=365 not the one on the screen shot.


2019-06-28-09-02-19-OBS-MASTER-SPREADSHEET-xlsm-Excel.jpg
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
could you post a link to shared excel file with this column only? (OneDrive, GoogleDrive, DropBox or any similar)

btw. look at the first rule on your last picture :) =R1048521>TODAY()
 
Last edited:

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499

ADVERTISEMENT

delete all unnecessary CF rules and stay with this:

screenshot-83.png


Excel file
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499

ADVERTISEMENT

I don't understand what are you trying to achieve
As I said what must be the first and what must be the second
you are loosing or set inappropriate ranges
in your first linked file I see only one different rule with IF, the rest is unnecessary beyond the ones you see here

all values (CFs) outside the table, were only for validation of formulas

cfrules2.jpg


try to do everything step by step with proper settings

and read this first (everything!):

 
Last edited:

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
if you want to use DATEDIF() function you must be aware of how it works and what errors and why they occur there
 

gplans

New Member
Joined
May 30, 2019
Messages
41
Ok, I am no excel genus as you can see. I have followed you instructions but I still can't even get it to work on your sheet. It seems to work sometimes bot other times it does not.

2019-06-28-13-09-12-Conditional-Formatting-Rules-Manager.jpg

2019-06-28-13-14-28-s666-CF-OBS-MASTER-SPREADSHEET-xlsm-Excel.jpg


The reason why my If statement is long.

IFERROR(IF(VLOOKUP(B79,'OBS Job List'!$A$2:$D$53,4,FALSE)=0,"",VLOOKUP(B79,'OBS Job List'!$A$2:$D$53,4,FALSE)),"")

Is if there is no date then it will not bring up an error in the cell. I hope that it was what you were referring to regarding my IF statement.

2019-06-28-13-19-57-s666-CF-OBS-MASTER-SPREADSHEET-xlsm-Excel.jpg


Thanks again for looking. I did go through the tutorials but as you can see the mystery has not been solved.
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
I hope that it was what you were referring to regarding my IF statement..

No, it was formula in CF rules: =IF(#REF!="","",DATEDIF(#REF!,TODAY(),"d")>7)

I'll look at CFs later
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,127,529
Messages
5,625,344
Members
416,096
Latest member
forevans

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