+ Reply to Thread
Results 1 to 3 of 3

Search and Highlight

  1. #1
    Registered User
    Join Date
    08-30-2006
    Posts
    2

    Search and Highlight

    650012 a1 985
    650012 a1 984
    650011 a2 651

    I want it to search down look at column A and B if they are the same as the row under it look at column C and highlight the smaller value.

    Thanks.
    Last edited by ftlkid24; 08-30-2006 at 05:20 PM.

  2. #2
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    I never tried anything like this without using VBA so I tried to make it work with conditional formatting. If you have column A (first) and B (second) sorted then it should work.

    Select your entire range, starting at A2 and open conditional formatting. Set Condition 1 to Formula and use this formula

    =OR(IF(AND($A2=OFFSET($A2,-1,,,),$B2=OFFSET($B2,-1,,,)),IF($C2=SMALL($C1:$C2,1),TRUE,FALSE),FALSE),IF(AND($A2=OFFSET($A2,1,,,),$B2=OFFSET($B2,1,,,)),IF($C2=SMALL($C2:$C3,1),TRUE,FALSE),FALSE))

    Its terribly long but it seems to work. I didnt do many test cases though. Hope this helps you,

    Jason

  3. #3
    Registered User
    Join Date
    08-30-2006
    Posts
    2

    Nice

    That will do it. Thanks. I was on the right track.

    Thanks J

+ 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