+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting - creating rules based on colours in cell list

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Conditional Formatting - creating rules based on colours in cell list

    Hi all

    I would like to know if this is possible to do, it involves writing rules in conditional formatting.

    Presently, I write multiple rules in conditional formatting which change the colour of the cell based on the text value, example as below

    conditional format question.png

    Is there any way of bypassing the rule-writing stage in order to speed up the process? (in the case where I wish to have multiple rules).
    What I would like to do is be able to say to excel, "the list in B2:B100 contains the following text characters and font / background fill instructions, create individual rules in conditional formatting that will change the colours based on the TEXT entered in that cell". This would help to avoid having to type out multiple rules.

    Is this in any way possible (with or without the help of VBA)??

    Thanks
    Marco
    Last edited by milkychips; 01-01-2016 at 12:27 PM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Conditional Formatting - creating rules based on colours in cell list

    Please attach your sample as a workbook, not a screen capture that most users can't see, also remember, you can't test conditional formatting / formulas on a screen capture.

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Conditional Formatting - creating rules based on colours in cell list

    Attached, thanks

  4. #4
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Conditional Formatting - creating rules based on colours in cell list

    Conditional formatting question.xlsx



    It is just a simple file at the moment with 4 rules

    Cell Value contains 'Fisher' which turns font blue
    Cell Value contains 'Ellis' which turns fill purple
    Cell Value contains 'Johnson' which turns fill yellow
    Cell Value contains 'Jones' which turns fill green and font white

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Conditional Formatting - creating rules based on colours in cell list

    Try this, it will write all of the rules for you.

    Note that it's written to pick up 'proper' formats from the source range, so it will not recognise existing conditional formats there.

    There are 2 ranges set at the start of the code, rng tells the code where the sample formats should be copied from, rng2 tells it where they should be applied, change these to suit.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Conditional Formatting - creating rules based on colours in cell list

    Absolutely magnificent piece of excel knowledge.

    Thanks very very much Jason.b

+ 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] Document (List) All Conditional Formatting Rules in Workbook
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2019, 05:30 PM
  2. Conditional formatting based on other cell colours
    By Smally in forum Excel General
    Replies: 2
    Last Post: 07-03-2014, 06:40 AM
  3. Replies: 16
    Last Post: 05-08-2014, 04:24 PM
  4. Replies: 8
    Last Post: 05-07-2014, 04:57 AM
  5. conditional formatting rules for a cell on sheet 1 based on rules from sheet 2
    By jsard in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 08-15-2013, 09:22 AM
  6. [SOLVED] creating conditional formatting rules
    By enedinamaddison in forum Excel General
    Replies: 6
    Last Post: 03-22-2013, 09:41 PM
  7. 3+ Conditional Formatting Rules for cell range based on Formula from other cells
    By osborsm9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2013, 08:48 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