Just cannot figure this out.
Test Data: B2,3,4 = "a","b","b"; D2,3,4 = "c","d","d"
Results should be "", "CHOICE", "DUP"
First I tried this in cell E1:
=ArrayFormula(if(row(A:A)=1,"Header",if((B2:B & D2:D)=(indirect("B"&row(B2:B)-1)&indirect("D"&row(D2:D)-1)),"DUP",if((B2:B & D2:D)=(indirect("B"&row(B2:B)+1)&indirect("D"&row(D2:D)+1)),"CHOICE",""))))
That brought back an error that B0 is an invalid cell reference.
Next I tried the below formula in cell E2:
=ArrayFormula(if((B2:B & D2:D)=(indirect("B"&row(B2:B)-1)&indirect("D"&row(D2:D)-1)),"DUP",if((B2:B & D2:D)=(indirect("B"&row(B2:B)+1)&indirect("D"&row(D2:D)+1)),"CHOICE","")))
This one produces results "CHOICE","","" which I just cannot understand.
Any thoughts?