I'm trying to create a boolean query in excel that will include every variation of any two items in a list.
To demonstrate, let's say my dataset is:
A
B
C
D
I'd like to create a formula which outputs ("A" AND "B") OR ("A" AND "C") OR ("A" AND "D") OR ("B" AND "C") OR ("B" AND "D") OR...
etc. Its not a big deal if it includes, for example ("A" AND "B")... ("B" AND "A")
.
My dataset is much bigger than four so it's extremely time consuming to do this manually.