hello - I need assistance with a query (or possible VBA). Here's the situation...
I have a table like this: (each X value appears at least twice)
[pre]
X Y
==========
1000 1
1000 31
1004 4
1004 18
1023 8
1023 79
1023 83
1101 5
1101 8
etc...[/pre]
I need to prepare a non-normalized table that shows PAIRS of Y values having the same X value, like this...
[pre]
X Y1 Y2
===================
1000 1 31
1004 4 18
1023 8 79
1023 8 83
1023 79 83
1101 5 8
etc...[/pre]
Almost all the data comes in groups of exactly 2 Y values, where a XTab can accomplish the goal.
But if a triplet of Y values appears, I need to list the resulting 3 pairs (as in X = 1023 above).
There are even a few rare cases where a quartet of Y values appear, so my final output would need
to list the resulting 6 possible pairings.
I'd really appreciate some help with this.
Many thanks
Teach314
I have a table like this: (each X value appears at least twice)
[pre]
X Y
==========
1000 1
1000 31
1004 4
1004 18
1023 8
1023 79
1023 83
1101 5
1101 8
etc...[/pre]
I need to prepare a non-normalized table that shows PAIRS of Y values having the same X value, like this...
[pre]
X Y1 Y2
===================
1000 1 31
1004 4 18
1023 8 79
1023 8 83
1023 79 83
1101 5 8
etc...[/pre]
Almost all the data comes in groups of exactly 2 Y values, where a XTab can accomplish the goal.
But if a triplet of Y values appears, I need to list the resulting 3 pairs (as in X = 1023 above).
There are even a few rare cases where a quartet of Y values appear, so my final output would need
to list the resulting 6 possible pairings.
I'd really appreciate some help with this.
Many thanks
Teach314