+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting

  1. #1
    Registered User
    Join Date
    06-21-2011
    Location
    st louis, mo
    MS-Off Ver
    Excel 2010
    Posts
    28

    Conditional Formatting

    Hi,

    In the attached table, I am trying to compare the values in cells A2 through A13 to the values in A1 for each column. If a cell is not the same value, I would like to see that cell shaded. If the cell is the same value or is blank, I don't want it shaded. Thanks in advance for any suggestions you provide.Book1.xlsx

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting

    Select A2:P13, go to Home|Conditional Formatting|New Rule

    Select Use a formula to determine which cells to format

    enter formula:

    =AND(A2<>"",A2<>A$1)

    click Format and choose form Fill tab.

    Click Ok.

    Click Ok again.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-21-2011
    Location
    st louis, mo
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Conditional Formatting

    That worked great. Thanks for response. In working with it a little more, is there a way that it can be copied conveniently. I want to copy the formatting for those rows, paste it below the original, and have the comparison row adjust automatically. Thanks again.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting

    Did you pick the whole range: A2:P13 before applying the formatting? If so, it should apply to all.

    If not, you can go to Manage Rule, and edit the Applies to range to include the whole range... the formula will self adjust.

  5. #5
    Registered User
    Join Date
    06-21-2011
    Location
    st louis, mo
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Conditional Formatting

    Sorry, I didn't explain myself very well. I am looking to copy rows 2 through 13 and paste in cell A14. Then, I have to edit the conditional rule to compare it to row 14. Since I plan on copying/pasting these rows multiple times I was hoping there was a more convenient way to achieve this.
    Last edited by sctraffic; 07-09-2012 at 01:59 PM.

+ 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