Formatting to highlight item warranty <6 months <12 Months and in warranty

Bigdyl69

New Member
Joined
May 31, 2023
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi all, sorry if this has already been asked but I have been through these forums quite a bit and cannot find what I need. I am creating a spreadsheet for Asset Management for my job (I am an IT Technician looking after 13 Primary schools) and none of the schools I support properly manage their IT assets to monitor for warranty expiration and replacement due dates.

I have started playing with some conditional formatting and can get the sheets to highlight devices that are still in warranty and those that have expired but nothing in between. The sheet uses column G for warranty expiration date (in MM/YYYY format) and I have 3 rules setup currently: -

Row 1 - Formula=TRUE (used as header/title row)
Column G - Cell Value > TODAY() (Formats cell fill to Green to highlight still in warranty)
Column G - Cell Value < TODAY() (Formats cell fill to Red to highlight warranty expired)

I am not very good with Excel (last properly used it 20+ years ago in college) and have learned this from posts on this forum but would also like a rule to format the cells in Yellow if devices are within 6 months of warranty expiration. If this is possible and anyone can help, it would be most appreciated. Currently using Excel 2021 if that helps. Thanks in advance
 

Attachments

  • AssetManagement.JPG
    AssetManagement.JPG
    34 KB · Views: 19

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Here is an attempt:


Mr excel questions 39.xlsm
ABCDEFG
1PC Make/ModelWarranty StartWarranty Endchecking date:2023-05-31
2<6 mos to exp<12 mos to expexpired
32020-01-01FALSEFALSETRUE
42022-01-01FALSEFALSETRUE
52022-06-01FALSEFALSETRUE
62022-12-01FALSEFALSETRUE
72023-03-01FALSEFALSETRUE
82023-05-15FALSEFALSETRUE
92023-05-29FALSEFALSETRUE
102023-05-30FALSEFALSETRUE
112023-05-31TRUEFALSEFALSE
122023-06-01TRUEFALSEFALSE
132023-09-01TRUEFALSEFALSE
142023-11-28TRUEFALSEFALSE
152023-11-29TRUEFALSEFALSE
162023-11-30TRUEFALSEFALSE
172023-12-01FALSETRUEFALSE
182023-12-02FALSETRUEFALSE
192023-12-03FALSETRUEFALSE
202023-12-04FALSETRUEFALSE
212024-05-15FALSETRUEFALSE
222024-05-29FALSETRUEFALSE
232024-05-30FALSETRUEFALSE
242024-05-31FALSETRUEFALSE
252024-06-01FALSEFALSEFALSE
262024-06-02FALSEFALSEFALSE
272024-06-01FALSEFALSEFALSE
28Lenovo 500W Gen 32022-11-012023-11-01TRUEFALSEFALSE
29FALSEFALSETRUE
30Lenovo 500W Gen 32023-11-01TRUEFALSEFALSE
31Lenovo 500W Gen 32023-11-01TRUEFALSEFALSE
32Lenovo 500W Gen 32023-11-01TRUEFALSEFALSE
33Lenovo 500W Gen 32023-11-01TRUEFALSEFALSE
Bigdyl69
Cell Formulas
RangeFormula
E1E1=TODAY()
E3:E33E3=AND($E$1<=$C3,EDATE($E$1,6)>=C3)
F3:F33F3=AND(EDATE($E$1,6)<$C3,EDATE($E$1,12)>=$C3)
G3:G33G3=$C3<$E$1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C3:C33Expression=$C3<$E$1textNO
C3:C33Expression=AND(EDATE($E$1,6)<$C3,EDATE($E$1,12)>=$C3)textNO
C3:C33Expression=AND($E$1<=$C3,EDATE($E$1,6)>=C3)textNO









1685552239548.png
 
Upvote 1
In post 2 the rules are mutually exclusive so you do not have to indicate a "stop when true" as true can only happen once.
I learned to make conditional formatting formulas using the above to create formulas that will answer all of the scenarios I wish in columns (which is what I did with the three columns to the right). Then use the first formula in each column to set the conditional formatting rules, being sure that the relative/absolute cell referencing is maintained.
 
Upvote 0
In post 2 the rules are mutually exclusive so you do not have to indicate a "stop when true" as true can only happen once.
I learned to make conditional formatting formulas using the above to create formulas that will answer all of the scenarios I wish in columns (which is what I did with the three columns to the right). Then use the first formula in each column to set the conditional formatting rules, being sure that the relative/absolute cell referencing is maintained.
Hi and thanks for the quick response. That has worked a treat (with a little cell reference manipulation) and does exactly what I want. I did swap the Green and Yellow highlighting around so Yellow highlights devices expiring within 6 months and Green is within 12 months. I assume that if the cell remains uncoloured that means the devices have in excess of 12 months warranty left? It seemed to indicate that in my testing anyway but it works great.

I'm going to use it as a template for all my schools and will share it with the other technicians (there are 5 of us working for the county/local authority) as it will make life so much easier for us and the schools for managing their IT assets.

Thank you so much for your help @awoohaw
 
Upvote 0
Sorry I had the colors reversed. I was more focused on the rules and not necessarily the colors, although I do strive for that accuracy as well.
I'm happy you found a solution here.

regarding the unformatted cells, I only gave formulas for the three conditions i thought you requested. So what ever condition doesn't fit in those 3 scenarios will be unformatted.

Best wishes!
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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
Back
Top