Excel Formula

Associate
Joined
1 Aug 2003
Posts
1,053
I have three columns of values and I want to pull out specific values from them.

The first two columns are essentially X, Y coordinates and the third column is the actual 'data'.

How do I pull the values from the third column that match up with my 2nd list of XY that are in an entirely different order?
 
If your two columns with differently ordered co-ordinates are in G and H, and your original data is in B , C and D where B and C are your coordinates and are being matched against G and H and D is your data you want to return then:

Create a column A where A2=B2&C2

this creates a concatenated X/Y coordinate value

Then in column I (or wherever you want your match to be returned):

=VLOOKUP(G2&H2,A:D,4,FALSE)

That says scan the table comprised of columns A to D, find the first occurrence (which will be in Column A) of your concatenated G/H co-ordinate and then return the value in the matching row from the fourth column (D)

But a snapshot of data in a screenshot will help a lot.
 
Back
Top Bottom