+ Reply to Thread
Results 1 to 4 of 4

Only apply conditional formatting if a condition is met

  1. #1
    Registered User
    Join Date
    11-19-2015
    Location
    Vancouver, BC
    MS-Off Ver
    2013
    Posts
    4

    Only apply conditional formatting if a condition is met

    I have a spreadsheet that has a few different columns: Name, #, Date, and then "Zones" broken down into different categories (painted, cut, assembled, etc) with a "target" and "status" column for each category.

    All of the zone information is inputted manually, as a percentage. So for each name, there will be a target percentage and an actual status percentage for each of the categories in each zone. These are all currently being manually formatted to different colours, and I want to make this an automatic rule... somehow.

    Target percentage is almost always 100%, but for new projects it is sometimes lower. When the status percentage is less than the target percentage, BOTH the target and status boxes are coloured yellow. If target and status values are equal (almost always both 100), then both cells are formatted green.

    I know that I will have to use conditional formatting of "if this cell > this cell", format yellow, my problem is the "applies to" box. Do I have to create a rule for every category and every project? Or is there an easier way to do this?

    The other problem with this is that below all of the project values, there are formulas that use the status averages in the same column, but below all of the project data. The ONLY column that is not used for something else below it is the # column (column B). So I have to check if column B is blank, and if it is, then to stop colour-formatting at whatever that row is.

    Any suggestions?
    Last edited by maddogp; 11-19-2015 at 07:02 PM. Reason: unclear table.

  2. #2
    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,929

    Re: Only apply conditional formatting if a condition is met

    Do I have to create a rule for every category and every project? Or is there an easier way to do this?
    If the same rules apply to various ranges of data, you can set it up that way in the "Applies To" window, something like this...
    =$D$1:$E$10,$H$1:$I$10,$K$1:$L$10

    Regarding the rest of your question/s, I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  3. #3
    Registered User
    Join Date
    11-19-2015
    Location
    Vancouver, BC
    MS-Off Ver
    2013
    Posts
    4

    Re: Only apply conditional formatting if a condition is met

    Here is an example with the data coloured the way I want it, done manually. The actual spreadsheet has at least 50 projects on it for any given week, so I would like to keep manually entering conditional "applies to" boxes to a minimum.

    Sample.xlsx

  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,929

    Re: Only apply conditional formatting if a condition is met

    This is the approach I took...
    1st, format all cells yellow using regular formatting (that way, you only need 1 CF rule)

    1. click on the 1st cell (D3)
    2. Select CF/New Rule/Use Formula
    3. enter =D3=E3
    4. Format file GREEN
    5. click OK
    6. In Applies To, highlight the 1st range (D and E columns), hold CTRL and hight the next range, rinse and repeat for the other ranges

+ 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. Apply Conditional Formatting on Row
    By Naghman in forum Excel General
    Replies: 3
    Last Post: 09-14-2015, 05:56 AM
  2. [SOLVED] Apply conditional formatting to rows below
    By ibenegal in forum Excel General
    Replies: 3
    Last Post: 01-07-2015, 03:11 AM
  3. apply 2 condition formatting on the same row
    By anana in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-07-2013, 02:49 AM
  4. Conditional formatting apply to entire row
    By Halt! I am Reptar in forum Excel General
    Replies: 6
    Last Post: 04-08-2013, 12:10 AM
  5. [SOLVED] Want to apply conditional formatting
    By mshtuhin in forum Excel General
    Replies: 5
    Last Post: 07-04-2012, 07:41 AM
  6. Replies: 1
    Last Post: 11-12-2010, 03:18 PM
  7. Replies: 2
    Last Post: 09-02-2009, 07:46 AM

Tags for this Thread

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