+ Reply to Thread
Results 1 to 5 of 5

Change cell background color based on another cells background color

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Porto
    MS-Off Ver
    Excel 2010
    Posts
    2

    Change cell background color based on another cells background color

    Hi guys. Quick question,

    is there anyway to change a cell background color based on another cell background being a particular color?

    I have a row with conditioning format that changes the background color based on a specific text.
    I would like to add a cell at the end of each row that would change, say, green if all other cells background on that row were green.

    Is this possible?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell background color based on another cells background color

    Hi

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Should works in CF rules.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    Porto
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Change cell background color based on another cells background color

    The thing is that

    =countif(your range;your text)=the number of cells in your range

    is not text. The condition is for that specific cell range being the color green

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell background color based on another cells background color

    You said that it is text. Not me.

    ...I have a row with conditioning format that changes the background color based on a specific text.
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Change cell background color based on another cells background color

    Is it the same text condition in each column? If so, you'd use the COUNTIF approach and test if the result equals the number of columns in question. If not, you'd need something like:
    =AND(A1="text1",B1="text2",C1="text3")
    with a specific check for each column. You can't base it purely off the CF colour of the other columns in the row.
    Remember what the dormouse said
    Feed your head

+ 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 Background Color Based On Cell
    By radicalrom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2013, 10:58 AM
  2. [SOLVED] Macro to change all cells with a certain background color in another background color
    By kevinvzandvoort in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2012, 11:04 AM
  3. Change Background Color of Row Based on Cell Value
    By ashishashish8 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-21-2011, 02:51 PM
  4. Change cell background color based on data?
    By proepert in forum Excel General
    Replies: 2
    Last Post: 11-18-2009, 01:02 AM
  5. change text color based on background color
    By great.bean in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2009, 07:07 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