+ Reply to Thread
Results 1 to 4 of 4

Color-format a cell which contains data in a column based on the color of another cell

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    2

    Color-format a cell which contains data in a column based on the color of another cell

    Hello Excel experts, I am a macro newbie, but I want to learn (but this time I do not have the time for that) so I turn to your wisdom instead and hope for the best

    My problem is:

    I have a column C which is conditionally formatted where there is text and also a color (blue) for some specific text content, otherwise the color is unformatted.

    Now I want the column to the left (B) which also contains data (numbers) to have the same color as the cell in the C column. (If one cell in column C is blue, then I want the cell in the B column to also be blue).

    How would I go about doing this?

    Thank you for your help in advance
    Attached Files Attached Files
    Last edited by Nit3hawK; 06-27-2013 at 02:19 PM. Reason: Attach an excel file

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.69 - (23011600)
    Posts
    7,731

    Re: Color-format a cell which contains data in a column based on the color of another cell

    you should be able to set the conditional format to be applied to both columns based on the content of one column

    at the moment you select the column c and apply the rules for the format

    lets say in the example

    C1="blue left" and format to blue and now apply to C1:C50

    to apply to the B column
    change the C1="blue left" to $c1="blue text"
    and apply to
    B1:C50

    see attached

    this way column B is still looking at column C because of the $ sign
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Color-format a cell which contains data in a column based on the color of another cell

    Thank you! That is a good piece of advice. Now where it says "blue left", in reality it says "blue left XYZ", "blue left ZOG", "blue left AOZ" i.e. different things after the first words. When I try to format "only cells that contain" and "specific text" and "Containing", I do not get it to work...? I feel really silly.

    Hopefully this should be easily sorted out?

    Edit: I solved it, thank you again!
    Last edited by Nit3hawK; 06-27-2013 at 05:02 PM. Reason: Solved the problem

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.69 - (23011600)
    Posts
    7,731

    Re: Color-format a cell which contains data in a column based on the color of another cell

    you welcome

    just in case you have an issue
    you could use

    left(C1,9)="blue left"

+ 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