+ Reply to Thread
Results 1 to 9 of 9

Multiple Condtional Formating

  1. #1
    Registered User
    Join Date
    08-29-2008
    Location
    UK
    Posts
    5

    Multiple Condtional Formating

    Is it possible to have 2 sets of CF for a cell or range based upon the text of another cell with a validation list?

    I need to RAG a cell on values between 1 to 14 or 1 to 7 depending on whether another cell equals "PERM or "PROB". Essentially I suppose I need 6 conditions. I assume it will be a Formula is formatting rule?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    what are the required conditions exactly can you list them?

  3. #3
    Registered User
    Join Date
    08-29-2008
    Location
    UK
    Posts
    5
    C2 is the cell I wish to format and F2 is the cell with the validation list. If F2 = "PERM" then the value 1-6 will return GREEN, 7-14 AMBER & >14 RED. IF F2="PROB" then 1-3 will be GREEN, 4-7 AMBER & >7 RED.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can do that like this, using "formula is" option in CF

    condition 1
    =C2>IF(F2="Perm",14,IF(F2="Prob",7,C2))
    format red

    condition 2
    =C2>IF(F2="Perm",6,IF(F2="Prob",3,C2))
    format amber

    condition 3
    =OR(F2="PERM",F2="Prob")*ISNUMBER(C2)*(C2>=1)
    format green

  5. #5
    Registered User
    Join Date
    08-29-2008
    Location
    UK
    Posts
    5
    Quote Originally Posted by daddylonglegs View Post
    You can do that like this, using "formula is" option in CF

    condition 1
    =C2>IF(F2="Perm",14,IF(F2="Prob",7,C2))
    format red

    condition 2
    =C2>IF(F2="Perm",6,IF(F2="Prob",3,C2))
    format amber

    condition 3
    =OR(F2="PERM",F2="Prob")*ISNUMBER(C2)*(C2>=1)
    format green
    Thanks for the reply, however this does not seem to be working? Infact Excel is advising there is an error somewhere? Can anyone help?

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Could you post a small sample of your data?
    Which error do you get?

  7. #7
    Registered User
    Join Date
    08-29-2008
    Location
    UK
    Posts
    5
    Been working on other stuff recently but now need to finish this! Here is the sample data if anyone can help: -

    Sickness Log.xls

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    perm/prob is in P10
    c2 isn't used
    where are the values 1-14 going then?

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming you want to format I14:I35 based on the values in that column and the value in P10 you can revise my suggestion above.

    Select the whole range I14:I35 with I14 "active cell" then apply formatting as follows using "formula is":

    condition 1
    =I14>IF(P$10="Perm",14,IF(P$10="Prob",7,I14))
    format red

    condition 2
    =I14>IF(P$10="Perm",6,IF(P$10="Prob",3,I14))
    format amber

    condition 3
    =OR(P$10="PERM",P$10="Prob")*ISNUMBER(I14)*(I14>=1)
    format green

+ 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. Pasting multiple lines of text into one cell
    By hoopz in forum Excel General
    Replies: 4
    Last Post: 07-11-2012, 08:28 PM
  2. Replies: 1
    Last Post: 11-14-2007, 03:41 PM
  3. Multiple charts over multiple sets of data over multiple worksheets.
    By matrocka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2007, 10:01 AM
  4. Multiple conditional formating per column???
    By farmerTom in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 04-25-2007, 01:07 AM
  5. Multiple Conditional Formating
    By Posnivy in forum Excel General
    Replies: 2
    Last Post: 11-21-2006, 02:21 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