how can I compare data from the same column and differnt rows?
for example I want to compare a1 to a2, and set B2 =1, if a1=a2, and b2=2, otherwise.
I can do it with formula in b2: =if(a1=a2,1,2).
Now I can copy this formula for cells b3 thru b15.
the problem arises, when one row is added, or deleted in the middle of the rows.
my question is : is it possible to refernce a2, as the a(current row +1)? or a3 as a(current row -1)
so my formula would be =if(a(current row) = a(currentrow-1), 1,2)
Bookmarks