+ Reply to Thread
Results 1 to 4 of 4

Change formatting of rows when value changes in column

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Change formatting of rows when value changes in column

    I have a spreadsheet where one column will determine the color of the entire row....if the sales persons name in column B = "Dew", the entire row should be shaded light blue. if the name is "Swiger" they should be white, when its Webb, it should be light blue again- alternatively, at every change in value in that column, alternate the entire rows shade - when the sales person name changes from Dew to Swiger, change the shading of Swigers Rows to white, when it changes from Swiger to Webb, make Webb's rows shaded the same blue as Dew's row's were....there are multiple rows for each sales person. Anyone have any ideas?
    Last edited by bjohnsonac; 03-18-2009 at 10:01 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,645

    Re: Change formatting of rows when value changes in column

    Conditional formating -> Formula is -> IF($B$2=...) etc

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Change formatting of rows when value changes in column

    sorry zbor, but there are several things wrong with your reply

    The above formula has an absolute reference to $B$2, so it cannot be copied to another row. Take out the $ sign before the 2, then the formula will work for all rows.

    Conditional formating -> Formula is -> IF($B2="Joe"...) etc

    Further, you don't need an IF statement, just a statement that will return True or False for the condition. It is perfectly OK for the condition to be

    =$B2="Joe"


    Bjonsonac:
    Please keep in mind that with Excel 2003 you can only achieve 4 different colours: 1 as the default and three more with conditional formatting. So, if both Joe's and Jane's rows should have the same color, your condition could look like

    Conditional formating -> Formula is -> =OR($B2="Joe",$B2="Jane")

    This leaves you some room for more names.

    Hope that helps

  4. #4
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Re: Change formatting of rows when value changes in column

    Thank you! Thank worked perfectly:D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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