+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting based on 2 column data

  1. #1
    Registered User
    Join Date
    10-01-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Conditional Formatting based on 2 column data

    I've searched and cannot quite find what I am trying to do (though it's probably extremely easy). I can highlight a single column no problem but I need to highlight names within a column based on both the name and a number on the cell adjacent to each name.

    I have a column with names in it and an adjacent column with numbers in it and I'm trying to highlight duplicates that have the same name and the same number on a row. So say there are three Brian's in the name column and ajdacent to the Brian's only two numbers are the same, I only want these two Brian's to be highlighted (as below).

    Tom 12
    Brian 18
    Mary 11
    Joe 16
    Anne 15
    Tom 14
    Brian 14 <--- so this one would not be highlited as the name and number don't match
    Mary 12
    Joe 13
    Anne 19
    Tom 15
    Brian 18
    Mary 17
    Joe 12
    Anne 13

    I'm using Excel 2010 - could anyone help me figure this out? Thanks for any help!

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

    Re: Conditional Formatting based on 2 column data

    Add one more column in C1 (=A1&B1) then use this formula in CF: =COUNTIF($C$1:$C$1000, $C1)>1

    (you can hide C column if you like)

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional Formatting based on 2 column data

    Your profile indicates you are using 2003, but your post states you are using 2010.

    This should work for both versions
    Assuming your data is in Columns A:B begining row 2
    Formula is :=
    Please Login or Register  to view this content.
    Applies to:=
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    10-01-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional Formatting based on 2 column data

    Quote Originally Posted by zbor View Post
    Add one more column in C1 (=A1&B1) then use this formula in CF: =COUNTIF($C$1:$C$1000, $C1)>1

    (you can hide C column if you like)
    Thanks for the help - I tried the way below and it worked like a charm but cheers for the response though! Thanks!

    Quote Originally Posted by Marcol View Post
    Your profile indicates you are using 2003, but your post states you are using 2010.

    This should work for both versions
    Assuming your data is in Columns A:B begining row 2
    Formula is :=
    Please Login or Register  to view this content.
    Applies to:=
    Please Login or Register  to view this content.
    This worked like a treat - absolutely fantastic! I have been doing this manually for a very long time but this will save me hours. Thanks!!
    Last edited by tobbrack; 10-01-2011 at 08:29 AM.

+ 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