+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting based on value of multiple cells

  1. #1
    Registered User
    Join Date
    05-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2011 Mac
    Posts
    1

    Conditional formatting based on value of multiple cells

    Hello,
    I am not sure if this is a VBA/macro problem or not so please excuse me if this is not in the right forum section.

    I am trying to change the color of cells on one sheet of a workbook based on multiple values on another sheet. I have made this work for up to 3 cells but get error messages beyond that. Here is what I specifically need

    Workbook sheet one contains a list of parts (25 for now, but will increase) that are assembled to make larger items which are listed on sheet 2.

    Each part on sheet one has 5 possible states, blank, failed test, passed test, test waived, test passed with exceptions.

    Each larger item on sheet 2 depends on the status of the parts on sheet 1 and has 5 possible states, blank, failed test, passed test, test waived, test passed with exceptions

    So for example, the status of Item A (sheet 2 ,cell A2) depends on the status of Parts 1-6 (sheet 1, cells A2-A7).
    If all 6 parts are blank, Item A background is white
    If one or more of the 6 parts are "failed test" Item A background is red.
    If all 6 parts are "passed test", item A background is green
    If one or more of the 6 parts are any combination of "test waived" or "test passed with exceptions" item A background is yellow.
    "failed test" status overrides all others. In other words if one of the 6 parts are "failed test" Item A is red regardless of the status of the other 5 parts.

    The code/macro needs to be used for parts groupings of various sizes besides 6. In other words Item B might consist of 15 parts.

    I think that describes the entire problem. I would really appreciate help or suggestions. My VBA skills are extremely weak so please don't assume I possess any significant knowledge.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional formatting based on value of multiple cells

    can you post a sample spreadsheet please
    on Sheet1 cells A2-A7 - do you also have the corresponding part number in Sheet2
    so you can match on partID and then look for those conditions ?
    The you maybe able to use a countifs() in a conditional format to count the items
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Conditional Formatting based on multiple cells
    By GeekHost in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2013, 01:13 PM
  2. [SOLVED] Conditional Formatting based on multiple strings in multiple cells
    By lily_ruiz_06 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2013, 04:23 PM
  3. Replies: 1
    Last Post: 05-09-2012, 08:14 AM
  4. Conditional Formatting based on Multiple Cells
    By SpreadsheetNublet in forum Excel General
    Replies: 6
    Last Post: 11-22-2011, 03:38 PM
  5. [SOLVED] Conditional Formatting Multiple cells based on 2 cells
    By Louis Markowski in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2005, 11:05 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