I have a list of elements:
John
Richard
Bill
Bob
Walter
And I would like to do something to get every possible combination of them in two columns excluding duplicates. Here is the example:
A B
John Richard
John Bill
John Bob
John Walter
Richard Bill
Richard Bob
Richard Walter
Bill Bob
Bill Walter
Bob Walter
As you can see I excude John-John and also Walter-Bill because there already is a Bill-Walter combination. How do I do that using formulas?

