+ Reply to Thread
Results 1 to 8 of 8

Changing the fill colour of 2 other cells based on another cell's outcome

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Angry Changing the fill colour of 2 other cells based on another cell's outcome

    I need to fill 2 other cells with varying colours dependant on what is chosen within another cell.

    I have a drop-down list in cell A2 to select either ON SITE, ACTIVE or CANCEL.

    What I need then basically is...
    if A2 equals 'ON SITE' then fill other two cells (A3 and B1) GREEN
    if A2 equals 'ACTIVE' then fill other two cells (A3 and B1) YELLOW
    if A2 equals 'CANCEL' then fill other two cells (A3 and B1) RED


    Any ideas how this can be done? [File attached]
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Changing the fill colour of 2 other cells based on another cell's outcome

    Yes, formula based conditional formatting, so applying to A3 & B1, you'd have

    =A2="ON SITE" for green etc.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Re: Changing the fill colour of 2 other cells based on another cell's outcome

    Hi nathansav

    Is there any way you could update the Excel file I attached to my original post to reflect your comments...I'm not too sure how to do this myself.

    Would really appreciate it if you could.

    Rgds
    Danny1982

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Changing the fill colour of 2 other cells based on another cell's outcome


  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Changing the fill colour of 2 other cells based on another cell's outcome

    HI ,

    Check this.

    Punnam
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Question Re: Changing the fill colour of 2 other cells based on another cell's outcome

    Punnam

    How can I then copy this conditional formatting easily for a series of cells? When I try and apply the conditional formatting to other cells, this wont work as the format is fixed on cell A2 changing. [file attached]

    How can I get them working independantly of one another?
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Changing the fill colour of 2 other cells based on another cell's outcome

    HI Danny,

    You need to do some modification like as follows,
    1) Remove all absolute reference .
    Punnam

  8. #8
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Re: Changing the fill colour of 2 other cells based on another cell's outcome

    Hi Punnam

    Is there any way you could update the Excel file I attached to my previous post to reflect your comments...I'm not too sure how to do this myself.

    Would really appreciate it if you could.

    Rgds
    Danny1982
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Changing the fill colour of 2 other cells based on another cell's outcome


+ 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. Changing cell fill colour based on date in cell - Multiple rows
    By ExcelNewb2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 07:30 AM
  2. Automatically Changing fill colour in cells
    By frazzled in forum Excel General
    Replies: 3
    Last Post: 08-29-2009, 03:28 PM
  3. changing a cell depending on the fill colour of adjacent cells
    By debbiec in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2009, 06:11 AM
  4. Changing Cell Fill Colour based on another cell value
    By MoonWeazel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2008, 10:15 AM
  5. Changing cell color based on mathematical outcome
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2005, 03: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