+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    problem highlighting duplicated cells based on a condition

    hey guys

    i'm using a table like this one :

    A B C D
    1 familyX | value1 | value2 | value3
    2 familyY | value1 | value2 | value3
    3 familyY | value1 | value2 | value3
    .

    .
    n familyX | value1 | value2 | value3


    if value1 from familyX equals value1 from familyY then highlight the two rows.
    need help plz
    regards

  2. #2
    Registered User
    Join Date
    04-16-2008
    Location
    Vietnam
    MS-Off Ver
    Office 2003
    Posts
    96

    Re: problem highlighting duplicated cells based on a condition

    This is box of Programming, but I think your problem can be solved by conditional formatting, needn't VBA:
    formula is: = Or($B2=$B1, $B2=$B3)
    Attached Files Attached Files
    Last edited by ptm0412; 02-27-2009 at 11:22 AM.

  3. #3
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    Re: problem highlighting duplicated cells based on a condition

    thank you so much ptm0412
    can it be done with more cells to compare ?
    for example i want to highlight rows if value1 and value2 from familyY equal value1 and value2 from familyX respectively.

    regards

  4. #4
    Registered User
    Join Date
    04-16-2008
    Location
    Vietnam
    MS-Off Ver
    Office 2003
    Posts
    96

    Re: problem highlighting duplicated cells based on a condition

    ofcourse, mehdoush. Use this formula as condition:

    =AND(OR($B2=$B1;$B2=$B3);OR($C2=$C1;$C2=$C3))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    Re: problem highlighting duplicated cells based on a condition

    great ptm0412

    regards

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.2.0