You need to provide much more detail. For example, what exactly do you
mean by "where they match"? Where what matches what? Also, you need to
explain how the value in column C is to be calculated. For example, in
the first row of you example data you have 1127 and 1129 and a result
of +1. Why is this 1 when the difference between 1127 and 1129 is 2,
not 1, especially in light of the fact that in the second row you have
1129 and 1130 also yielding a result of +1. Why does the first row get
a result of 1, not 2? You need to explain in detail what it is that
you want to compare and the meaning of the results.
Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]
On Thu, 21 Jan 2010 06:23:01 -0800, Rob
wrote:
I have three columns thast represent Set numbers, I want to compare the
values in column "B" with those in column "A" find where they match and then
calculate how many rows they have moved either up or down and put the answer
in column "C"
Col A Col B Col C
1127 1129 +1
1129 1130 +1
1130 1132 +3
1102 1102 0
1131 1131 0
1132 1133 +1
1133 1135 +1
1135 1137 +2
1062 1138 +2
1137 1062 -1
1138 1141