+ Reply to Thread
Results 1 to 7 of 7

change text color based on adjacent cell text color

  1. #1
    Registered User
    Join Date
    02-24-2005
    Posts
    9

    change text color based on adjacent cell text color

    one column is formated to change the text color to red when a condition is true
    i need the text in each row to match the text color in this column

    this is how it is now

    data1 data2 data3
    data1 data2 data3
    data1 data2 data3




    i need it to do this

    data1 data2 data3
    data1 data2 data3
    data1 data2 data3


    any help would be greatly appreciated


    btw: the data in data2 is dates and they are all different
    Last edited by matthewst; 02-24-2005 at 01:06 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    As I understand you want all formats in One row to depend on the value in One Column?

    Try this:
    Select menu: Format>Conditional formatting...
    Under Condition 1: change from 'Cell Value Is' to 'Formula Is' =$B1
    and select your format
    Done

    Now use the Format painter button to format all cell in you example:
    ...........Col A...ColB...Col C
    Row 1 data1 data2 data3
    Row 2 data1 data2 data3
    Row 3 data1 data2 data3


    Ola Sandstrom

  3. #3
    Registered User
    Join Date
    02-24-2005
    Posts
    9
    Thank you for your help.

    We are on the right track, but now i get this



    ...........Col A...ColB...Col C
    Row 1 data1 data2 data3
    Row 2 data1 data2 data3
    Row 3 data1 data2 data3


    what i need is this

    ...........Col A...ColB...Col C
    Row 1 data1 data2 data3
    Row 2 data1 data2 data3
    Row 3 data1 data2 data3


    The text color for column for a and c will not be the same for the entire coulmn.
    Insted I need the text color for an entire row to match the text color in column b for each individual row.


    In other words, If the text in b7 is red then the text in a7 and c7 should also be red but b9 is green so I need the text in a9 and c9 to also be green.


    Thanks for any help you can give.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    What is the condition for Column B to be formatted?

    Quote Originally Posted by matthewst
    Thank you for your help.

    We are on the right track, but now i get this



    ...........Col A...ColB...Col C
    Row 1 data1 data2 data3
    Row 2 data1 data2 data3
    Row 3 data1 data2 data3


    what i need is this

    ...........Col A...ColB...Col C
    Row 1 data1 data2 data3
    Row 2 data1 data2 data3
    Row 3 data1 data2 data3


    The text color for column for a and c will not be the same for the entire coulmn.
    Insted I need the text color for an entire row to match the text color in column b for each individual row.


    In other words, If the text in b7 is red then the text in a7 and c7 should also be red but b9 is green so I need the text in a9 and c9 to also be green.


    Thanks for any help you can give.

  5. #5
    Registered User
    Join Date
    02-24-2005
    Posts
    9
    condidtion 1 cell value is less than =TODAY()
    AABBCCDD


    condidtion 2 cell value is less than or equal to =TODAY()+90
    AABBCCDD



    condidtion 3 cell value is less than or equal to =TODAY()+180
    AABBCCDD


    I need the cells in the rows where column b is red to all be red.
    likewise with the green and orange

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    1) Select your data

    2) Format > Conditional Formatting > Formula Is

    Condition 1:

    =($B1<>"")*($B1<TODAY())

    ...and choose your formatting.

    Condition 2:

    =($B1<>"")*($B1<=TODAY()+90)

    ...and choose your formatting.

    Condition 3:

    =($B1<>"")*($B1<=TODAY()+180)

    ...and choose your formatting.

    Hope this helps!

    Quote Originally Posted by matthewst
    condidtion 1 cell value is less than =TODAY()
    AABBCCDD


    condidtion 2 cell value is less than or equal to =TODAY()+90
    AABBCCDD



    condidtion 3 cell value is less than or equal to =TODAY()+180
    AABBCCDD


    I need the cells in the rows where column b is red to all be red.
    likewise with the green and orange

  7. #7
    Registered User
    Join Date
    02-24-2005
    Posts
    9
    You are a genius!!!!!!!!!!!

+ 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