x and y lookup


Posted by gordon on June 13, 2001 6:45 PM

What is the fastest way to get? (Column a2:a30 = different city names, Rows a1:ad1 has the exact same city names. The mileage at the point of intercetion is the answer in miles in a:34

Posted by steve w on June 13, 2001 8:25 PM

need more info not exactly sure what your doing
steve w



Posted by Aladin Akyurek on June 13, 2001 10:37 PM

Gordon

If the following sample, which occupy A1:E5, reflects your data

{"","city1","city2","city3","city4";"city1",0,8,6,7;"city2",8,0,4,9;"city3",6,4,0,3;"city4",7,9,3,0}

In A34 enter: =VLOOKUP("city1",A1:E5,MATCH("city3",A1:E1,0),0)

will give you the miles between "city1" and "city3".

Aladin