I need a match index formula that will return the next unique value from a data set with criteria applying to multiple values. Right now the formula in row one returns a value, and the formula in row 2 returns the same value, instead of skipping that value and moving on to the next available one that meets the criteria. Currently I have this as my formula:
J18:J34 = data I want returned
K18:K34 = criteria corresponding to each J value
G18:G34 = match lookup values
F18:F34 = output
=IF(INDEX($J$18:$J$34,MATCH(G18,$K$18:$K$34,0))=$F$17:F17,INDEX($J$18:$J$34,MATCH(G18,$J$18:$J$34))<>$F$17:F17,INDEX($J$18:$J$34,MATCH(G18,$K$18:$K$34,0)))
Solved by B. H. in 22 mins