+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting Help

Hybrid View

  1. #1
    Registered User
    Join Date
    03-16-2018
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    1

    Conditional Formatting Help

    Hi there,

    I'm fairly new to Excel but I've been putting together a work spreadsheet. It's been requested that when certain offence codes appear that their cell highlights (or better yet the whole row!). I know I could get input a bunch of individual conditional formatting rules but there has to be a better way.

    The codes would appear in column E

    The possible data/codes are "1940","1960","1941","1961","1942","1962","1938","1958","1939","1959","1929","1949","1930","1950","1931","1951","1932","1952","1933","1953","1934","1954","1991","1992","1994","1996","2093","8321","2095","2096","2097","2098","2099","7389","7390","1999","3220","5851","5852","5853","5854","5855","5856","5857","5858","5859","5860"

    Basically I would like it either so the specific cell in column E highlights or the row (at least up to column E). I've looked for guides but haven't found anything that worked and most of them deal with simple conditional formatting where a simple pattern/trend exists. Technically I suppose you could say these possible values represent multiple trends and if necessary I'll enter in multiple formatting rules that relate to the possible trends.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Conditional Formatting Help

    Hi,

    I suggest you put the codes into a range, then use a formula rule like
    =MATCH($E2,range_with_codes,0)
    applied to the entire range you want coloured. I've assumed that starts in row 2 but if not, adjust the 2 in the formula to match the first row of the data.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Conditional Formatting Help

    Try:

    =ISNUMBER(MATCH($E2,$Q$2:$Q$47,0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Conditional Formatting Help

    another option

    cf formula
    =COUNTIF(Sheet1!$A:$A,$E2)>0

    The value of each cell in column E (sheet2) is checked against the list of codes in column A of sheet1.

    see attached workbook

    cf_56.jpg

    Formula is in column H so that you can see why it works
    - column H is not part of the solution
    Attached Files Attached Files
    Last edited by kev_; 04-10-2018 at 08:18 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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