Need Help with a Look up formula.

Jithe

New Member
Joined
Apr 17, 2017
Messages
18
Hi Guys,

I need some help regarding some work related calculations. I need a formula or a methodology. :confused:

Assume there are 2 tables

Table 1

DateID NoFromToDistance KM
1st Jan12546Point APoint B5
2nd Jan15976Point BPoint C?
3rd Jan14753Point APoint C?
4th Jan15853Point CPoint D?

<tbody>
</tbody>




Table 2

FromToKM
Point APoint B5
Point APoint C7
Point BPoint C9
Point CPoint D13

<tbody>
</tbody>

I need a formula for when I type the From and To locations in Table 1, it looks up the value corresponding KM in Table 2 and places the KM value in table 1.


Your help is greatly appreciated.

Thank You
Regards,
Jithe
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
1​
Date
ID No
From
To
Distance KM
FromToKM
2​
1st Jan​
12546​
Point A​
Point B​
5​
Point APoint B
5​
3​
2nd Jan​
15976​
Point B​
Point C​
9​
Point APoint C
7​
4​
3rd Jan​
14753​
Point A​
Point C​
7​
Point BPoint C
9​
5​
4th Jan​
15853​
Point C​
Point D​
13​
Point CPoint D
13​

In E2 control+shift+enter, not just enter, and copy down:

=INDEX($J$2:$J$5,MATCH(D2,IF($H$2:$H$5=C2,$I$2:$I$5),0))
 
Upvote 0

Forum statistics

Threads
1,215,603
Messages
6,125,771
Members
449,259
Latest member
rehanahmadawan

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