+ Reply to Thread
Results 1 to 4 of 4

Change a cell colour based on another cell's color

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Change a cell colour based on another cell's color

    Hi what I need is the following:

    If cell A1 is colored red (RGB255, 0, 0) then makes this cell (D1) also red, if it's green (RGB0, 204, 0) then also make it green.

    The cells that are being changed color have data in them or I may have to input data at some stage, so I don't want the data in the cells to be affected.

    Thanks to everyone in advance... Andie

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

    Re: Change a cell colour based on another cell's color

    Hi and welcome ot the forum

    excel cannot "see" colors because colors are formatting, not data. excel works with data, formatting is just cosmetic appearance. Is there some logic that determines what color the 1st cell will be? If so we could use that same logic to change the 2nd cell.

    Failing that, you will need someone to put some VBA together for you for this
    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
    10-28-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Change a cell colour based on another cell's color

    Thanks so much for your quick reply!

    I guessed as much, unfortunately it's all about the color and not the content (it's a kind of staff roster showing availability - GREEN available and RED not available). I'll probably post something in the forum re VBA, although it's a bit beyond what I usually get into....

    Thanks again

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Change a cell colour based on another cell's color

    If your (original) cell color is based on availabilty, how did you get it assigned? (this is what I believe FDibbins was trying to point out)
    Using the same logic, you can get the NEW cell to highlight in the same color as the original

    Edit-
    It's probably even the same calculation, just adjusted for cell placement
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

+ 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. Change colour of cells based on another cell's colour (Not value)
    By LTrain89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:44 PM
  2. Replies: 2
    Last Post: 12-19-2012, 11:04 AM
  3. Replies: 5
    Last Post: 05-10-2012, 10:49 PM
  4. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  5. Replies: 2
    Last Post: 10-10-2008, 11:24 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