+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting based on another cell

  1. #1
    Registered User
    Join Date
    09-21-2017
    Location
    Corvallis, OR
    MS-Off Ver
    2016
    Posts
    3

    Question Conditional formatting based on another cell

    Hello,

    I am creating a list of fire extinguishers and their service dates. I want the service date column to highlight when the extinguisher will need to be serviced within the next year. The issue that I am having is that there are different types of extinguishers that have different lengths of time between service.

    I have them highlighting yellow for those needing service within and year and red for those past their service dates. Here's an example of my formula for those needing service within a year:

    =AND(G2<=TODAY()-1825, G2>=TODAY()-2130)

    Most typical extinguishers have a 6 year expiration, but there is one type that has a 5 year expiration. Is it possible for me to write a formula that will highlight after 4 years if another column in that row says K and to highlight after 5 years if another column in that row says ABC?

    excel.PNG

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional formatting based on another cell

    Highlight your dates in column G (G2:G__) > Conditional Formatting > New Rule

    =EDATE(G2,IF(E2="K",36,48)) <= TODAY()

    Format: Fill Yellow > OK > OK


    With your data in column G still highlighted, Conditional Formatting > New Rule

    =EDATE(G2,IF(E2="K",48,60)) < TODAY()

    Format: Fill Red > OK > OK

    It is very important that you apply the rules in this order. Otherwise it will not work correctly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Conditional Formatting based on another cell
    By jmcole in forum Excel General
    Replies: 4
    Last Post: 12-10-2016, 05:21 PM
  2. Replies: 1
    Last Post: 10-04-2016, 05:17 AM
  3. Conditional formatting based on more than one cell
    By Roan242 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2014, 07:18 AM
  4. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  5. Replies: 4
    Last Post: 01-06-2012, 05:07 PM
  6. Replies: 12
    Last Post: 02-18-2010, 06:23 AM
  7. Conditional Formatting based on value of another cell
    By pickledmuffin in forum Excel General
    Replies: 3
    Last Post: 05-19-2008, 06:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1