Ok, my ultimate goal is to have an array of 'Delete' or 'Keep' values in an array. This will feed into another function. This is the formula I am using (focus on the first 'Sumproduct' function)
=IF(SUMPRODUCT(--($C31=$C$2:INDEX($C$1:$C31,N(INDEX(ROW($C$2:$C31),)))))<=COUNTIF($C$2:$C$32,-$C31)-SUMPRODUCT(--($C31=$C$2:INDEX($C$1:$C30,INDEX(ROW($C$2:$C30),)))),"Delete","Keep")
What I want is for the formula above to calculate each result for a changing range up to the 'ROW' limit. In this example the formula would calculate based on
C31=C2:C2
then
C31=C2:C3
.
.
and finally
C31=C2:C31
Initially I was having a problem with only the first INDEX reference being returned but then I found some info about using the 'N' function to get an array of answers to return but the problem there is that it returns the values in those cells but not the cell references themselves. Of course solving that might not get the final result but I think it would be a step closer.
Any advice would be appreciated.
Bookmarks