+ Reply to Thread
Results 1 to 4 of 4

Different Colors for Rows With Key Words

  1. #1
    Registered User
    Join Date
    06-20-2012
    Location
    Bagdad, AZ
    MS-Off Ver
    Excel 2010
    Posts
    4

    Different Colors for Rows With Key Words

    Howdy,

    I have four teams that have specific colors that define them. I am trying to have ecxel automatically fill in the row that has that teams name and all the information within that row to have a certain color that defines that team. How would I do that? Doing this manually takes forever.

    Thanks!

  2. #2
    Registered User
    Join Date
    06-20-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Different Colors for Rows With Key Words

    Hi
    The following works for me.
    Suppose your names of the teams were "Blue" and "Yellow", and the names of the teams could be found in column A. To make blue team rows blue, the steps are as follows:
    1. Select all the data
    2. Click on conditional formatting (in the home tab)
    3. Click on new rule
    4. Click on "Use a formula...."
    5. enter this formula in the box =$a1="Blue"
    6. Click on format and choose a font or a fill color
    7. Click OK
    8 . Click OK

    Repeat these steps for the other teams

  3. #3
    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
    53,047

    Re: Different Colors for Rows With Key Words

    @ Mark that will just make that 1 cell change color

    to make the entire row change color based on the team's name, try using this formula, in the same way that Mark suggested...

    =INDIRECT("D"&ROW())="Blue" where D is the column the team color is in - change this if needed.

    then repeat that with "new rule" for the other teams

    let me know how this works out for you?
    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

  4. #4
    Registered User
    Join Date
    06-20-2012
    Location
    Bagdad, AZ
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Different Colors for Rows With Key Words

    Hey FDibbins!

    Thanks so much for helping me out. Your formula worked out great!

    Thank you!

+ 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