+ Reply to Thread
Results 1 to 4 of 4

Change Cell Fill Color Based on Colors in 2 Columns

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Canton, MA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Change Cell Fill Color Based on Colors in 2 Columns

    Hello,

    I hope someone can help me. I'm not even sure if this is possible but here is what I'm looking to do. I have a worksheet where 2 columns have Conditional Formatting (columns H & I).

    Column J's fill color should be based on Column H & I.
    If Column H is green and Column I is green = Column J is green.
    If Column H is Green and Column I is Yellow = Column J is red.
    If Column H is Green and Column I is Red = Column J is red.
    If Column H is Yellow and Column I is Green = Column J is yellow.
    If Column H is Yellow and Column I is Yellow = Column J is red.
    If Column H is Yellow and Column I is Red = Column J is red.
    If Column H is Red and Column I is Green = Column J is red.
    If Column H is Red and Column I is Yellow = Column J is red.
    If Column H is Red and Column I is Red = Column J is red.

    I'm assuming that this would be handled by VBA code which I am not familiar with. Any suggestions?

    Thanks in advance!
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    11-03-2010
    Location
    Canton, MA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Change Cell Fill Color Based on Colors in 2 Columns

    I'm attaching a sample worksheet with Column H and Column I formatted appropriately.

    Any guidance is appreciated!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-03-2010
    Location
    Canton, MA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Change Cell Fill Color Based on Colors in 2 Columns

    Bump no response.

    Ok I'm really stuck. Can anyone even tell me if this is possible? Do I need to provide additional info? I'm apologize if this is vague. It's my first post. :-)

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Change Cell Fill Color Based on Colors in 2 Columns

    Hello djkante,

    Please see the attached workbook. You don't need VBA for this. I used columns K, L, and M as helper columns. The have IF formulas to determine the conditional format color. K is for red, L is for yellow, and M is for green. The cells in column I check the state of the cells in columns K, L, and M. The format color is set when the helper cell is true. If there is an error then the cell is not colored. You can hide the columns to improve the appearance of the worksheet.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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