Is there a way to do this in Excel 2007? If not, how can this be less painful?

I need to generate a list of 2 columns combination from the values in 7 columns.
Example (with 4 columns):
1 2 3 4
3 1
3 1 4

Need:
12
13
14
23
24
34
31
31
34
14