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.
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.
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
That will do it. Thanks. I was on the right track.
Thanks J
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks