+ Reply to Thread
Results 1 to 13 of 13

Conditional formatting with more than 15 rules

  1. #1
    Registered User
    Join Date
    02-02-2015
    Location
    Berlin, Germany
    MS-Off Ver
    MS OFFICE 2013
    Posts
    6

    Conditional formatting with more than 15 rules

    Hi everyone,

    I need some help with conditional formatting. Even though it seems simple at first, I haven't been able to find a solution to this:

    attached you will find an example of a regular excel sheet which has in reality about 20-30 columns with different conditional formattings depending on what the column is needed for.

    The issue that I have... I want the very first column to be like warning that there is a violation of the rules in any of the rest of the colums (B-S for example)

    How do I accomplish it without setting 15-20 rules for every cell in the 1st column??



    Thank you so much for your advice!!

    Attachment 457697
    Attached Files Attached Files
    Last edited by lnjkbsn; 04-25-2016 at 12:06 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Conditional formatting with more than 15 rules

    I don't know what you mean by "violation of the rules" - perhaps you can explain further.

    Pete

  3. #3
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Conditional formatting with more than 15 rules

    Are you asking for the warning column to highlight red when the any of the conditions set for that row are met?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Conditional formatting with more than 15 rules

    Hi, welcome to te forum

    1st, what would constitute a "rule break" in each of the other cells? If you can come up with a formula that will tell you that, then that is the formula you could us as the CF rule.
    Seeing as we have no clue what they might be, you will need to provide more info
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-02-2015
    Location
    Berlin, Germany
    MS-Off Ver
    MS OFFICE 2013
    Posts
    6

    Re: Conditional formatting with more than 15 rules

    @Pete_UK

    Sorry for not being explicit enough. With a violation of the rule I meant the fulfilled conditions. The dates (actions taken on a certain date) have deadlines, for example the response has to follow 3 days after the 1st contact. If the condition is not fulfilled, the cell turns red.

  6. #6
    Registered User
    Join Date
    02-02-2015
    Location
    Berlin, Germany
    MS-Off Ver
    MS OFFICE 2013
    Posts
    6

    Re: Conditional formatting with more than 15 rules

    @PFDave,

    Right, that is what I basically meant.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Conditional formatting with more than 15 rules

    It would probably help more if you could upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  8. #8
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Conditional formatting with more than 15 rules

    Quote Originally Posted by lnjkbsn View Post
    @PFDave,

    Right, that is what I basically meant.

    You can use the formatting you have already in place to do this.

    Change the applies to field in manage rules and add in the first column you'd like to highlight. You would need to repeat this for each of the rules but once done it's done.

  9. #9
    Registered User
    Join Date
    02-02-2015
    Location
    Berlin, Germany
    MS-Off Ver
    MS OFFICE 2013
    Posts
    6

    Re: Conditional formatting with more than 15 rules

    Quote Originally Posted by PFDave View Post
    You can use the formatting you have already in place to do this.

    Change the applies to field in manage rules and add in the first column you'd like to highlight. You would need to repeat this for each of the rules but once done it's done.
    That is also an option but I was hoping that I might avoid setting 15 different rules for 1 cell, instead make only 1 formula which would include all rules.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional formatting with more than 15 rules

    test reply...........
    ....One way would be to use a shadow set of 20-30 columns and in each of these columns add an IF test that uses the CF formula which returns a value of 1 if true.

    Edit, Sucuri playing up and preventing the rest of this solution that contains example formulae. So in the warning column add a CF formula that sums the range of the shadow column range and sets the CF if the sum is greater than zero.
    Last edited by Richard Buttrey; 04-25-2016 at 12:26 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Conditional formatting with more than 15 rules

    You only need one CF rule, and you can apply in one go to the cells in column B. First of all, select cells B7:B11 and use the Fill colour icon to change the background to No Fill. With the cells still selected, click on Conditional Formatting | New Rule | Use a Formula... , then enter this formula in the dialogue box:

    =OR(G7<-0.03,H7>C7+7,I7>H7+4,J7>H7+7,K7>=J7+14,L7>K7+2)

    then click on the Format button | Fill tab and choose red as the background colour, then click OK twice to exit the dialogue box - Excel will adjust the row references to suit the cells that are selected. If you have any other conditions for other columns in your real file, you can just add them to the OR function.

    Hope this helps.

    Pete

  12. #12
    Registered User
    Join Date
    02-02-2015
    Location
    Berlin, Germany
    MS-Off Ver
    MS OFFICE 2013
    Posts
    6

    Re: Conditional formatting with more than 15 rules

    Quote Originally Posted by Pete_UK View Post
    You only need one CF rule, and you can apply in one go to the cells in column B. First of all, select cells B7:B11 and use the Fill colour icon to change the background to No Fill. With the cells still selected, click on Conditional Formatting | New Rule | Use a Formula... , then enter this formula in the dialogue box:

    =OR(G7<-0.03,H7>C7+7,I7>H7+4,J7>H7+7,K7>=J7+14,L7>K7+2)

    then click on the Format button | Fill tab and choose red as the background colour, then click OK twice to exit the dialogue box - Excel will adjust the row references to suit the cells that are selected. If you have any other conditions for other columns in your real file, you can just add them to the OR function.

    Hope this helps.

    Pete

    Thank you very much Pete!

  13. #13
    Registered User
    Join Date
    02-02-2015
    Location
    Berlin, Germany
    MS-Off Ver
    MS OFFICE 2013
    Posts
    6

    Re: Conditional formatting with more than 15 rules

    Quote Originally Posted by Richard Buttrey View Post
    test reply...........
    ....One way would be to use a shadow set of 20-30 columns and in each of these columns add an IF test that uses the CF formula which returns a value of 1 if true.

    Edit, Sucuri playing up and preventing the rest of this solution that contains example formulae. So in the warning column add a CF formula that sums the range of the shadow column range and sets the CF if the sum is greater than zero.
    I am not sure if I understand how to do it. An exampe would be very helpful.

+ 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 - 2 rules in 1
    By Leathermyth in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 02:29 PM
  2. Conditional Formatting two rules
    By pauldaddyadams in forum Excel General
    Replies: 1
    Last Post: 11-21-2014, 11:15 AM
  3. Conditional formatting rules
    By puzzlelover22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2014, 12:45 PM
  4. [SOLVED] 2 rules for conditional formatting
    By alfgrey in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-04-2013, 10: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. What new rules do I need for Conditional Formatting?
    By ypurcaro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-12-2013, 04:30 AM
  7. Conditional Formatting with rules
    By howcroc in forum Excel General
    Replies: 6
    Last Post: 02-04-2011, 12:01 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