blackie42
04-02-2013, 03:38 AM
Hi,
Can anyone suggest a method for comparing entries in the first sheet with those in the second and where a match is found highlighting each in yellow. The idea being the ones that aren't highlighted are discrepancies.
The match would be made over a number of adjacent cells - so to get the match the only thing different would be the number (although it could be possible to convert WB2 numbers to + before the match to make it easier) e.g.
WB1 Sheet 1 WB2 Sheet 1
A B C A B C
Policy1 21/03/13 50.23 Policy1 21/03/13 -50.23 'match'
Policy2 21/03/13 25.66 Policy2 26/03/13 -25.66 'no match'
Policy3 24/03/13 41.23 'no match'
Policy4 24/03/13 15.88 Policy4 24/03/13 -15.88 'match'
Policy5 25/03/13 -44.95 'no match'
Policy6 25/03/13 10.23 'no match'
Policy7 26/03/13 22.55 Policy7 26/03/13 -22.55 'match'
I think I need to test each range in WB1 against all similar ranges in WB2 but can't think how to do it.
Any help is greatly appreciated
thanks
Can anyone suggest a method for comparing entries in the first sheet with those in the second and where a match is found highlighting each in yellow. The idea being the ones that aren't highlighted are discrepancies.
The match would be made over a number of adjacent cells - so to get the match the only thing different would be the number (although it could be possible to convert WB2 numbers to + before the match to make it easier) e.g.
WB1 Sheet 1 WB2 Sheet 1
A B C A B C
Policy1 21/03/13 50.23 Policy1 21/03/13 -50.23 'match'
Policy2 21/03/13 25.66 Policy2 26/03/13 -25.66 'no match'
Policy3 24/03/13 41.23 'no match'
Policy4 24/03/13 15.88 Policy4 24/03/13 -15.88 'match'
Policy5 25/03/13 -44.95 'no match'
Policy6 25/03/13 10.23 'no match'
Policy7 26/03/13 22.55 Policy7 26/03/13 -22.55 'match'
I think I need to test each range in WB1 against all similar ranges in WB2 but can't think how to do it.
Any help is greatly appreciated
thanks