Lookup distances in table and display them

hansa

New Member
Joined
Oct 14, 2017
Messages
1
This should be a straight-forward question, but I haven't done Excel in a while, so maybe there is a kind soul here that can point me in the right direction ;)

I have a table that displays distances between Points T, A, B, C, D, E, which looks like this:

[TABLE="width: 0"]
<tbody>[TR]
[TD][/TD]
[TD]T[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]T[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]63[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]32[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]

I would now like to use a formula to display all these distances like this:

[TABLE="width: 0"]
<tbody>[TR]
[TD]from[/TD]
[TD]to[/TD]
[TD]distance[/TD]
[/T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]
[TD]c[/TD]
[TD]d[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]e[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]t[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]a[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]b[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]c[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]e[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]t[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]a[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]b[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]c[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]d[/TD]
[TD]etc[/TD]
[/TR]
</tbody>[/TABLE]


Thanks for all input and help!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You could use INDEX / MATCH.

Copy formula down as needed.
Excel Workbook
ABCDEFG
1TABCDE
2T02220515963
3A22010303650
4B20100324045
5C51303201132
6D59364011040
7E63504532400
8
9
10ta22
11tb20
12tc51
13td59
14te63
15at22
16ab10
17ac30
18ad36
19ce32
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top