Hi Guys,
I need some help regarding some work related calculations. I need a formula or a methodology.
Assume there are 2 tables
Table 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]ID No[/TD]
[TD="align: center"]From[/TD]
[TD="align: center"]To[/TD]
[TD="align: center"]Distance KM[/TD]
[/TR]
[TR]
[TD="align: center"]1st Jan[/TD]
[TD="align: center"]12546[/TD]
[TD="align: center"]Point A[/TD]
[TD="align: center"]Point B[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]2nd Jan[/TD]
[TD="align: center"]15976[/TD]
[TD="align: center"]Point B[/TD]
[TD="align: center"]Point C[/TD]
[TD="align: center"]?[/TD]
[/TR]
[TR]
[TD="align: center"]3rd Jan[/TD]
[TD="align: center"]14753[/TD]
[TD="align: center"]Point A[/TD]
[TD="align: center"]Point C[/TD]
[TD="align: center"]?[/TD]
[/TR]
[TR]
[TD="align: center"]4th Jan[/TD]
[TD="align: center"]15853[/TD]
[TD="align: center"]Point C[/TD]
[TD="align: center"]Point D[/TD]
[TD="align: center"]?[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]From[/TD]
[TD]To[/TD]
[TD]KM[/TD]
[/TR]
[TR]
[TD]Point A[/TD]
[TD]Point B[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD]Point A[/TD]
[TD]Point C[/TD]
[TD="align: center"]7[/TD]
[/TR]
[TR]
[TD]Point B[/TD]
[TD]Point C[/TD]
[TD="align: center"]9[/TD]
[/TR]
[TR]
[TD]Point C[/TD]
[TD]Point D[/TD]
[TD="align: center"]13[/TD]
[/TR]
</tbody>[/TABLE]
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
I need some help regarding some work related calculations. I need a formula or a methodology.
Assume there are 2 tables
Table 1
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]ID No[/TD]
[TD="align: center"]From[/TD]
[TD="align: center"]To[/TD]
[TD="align: center"]Distance KM[/TD]
[/TR]
[TR]
[TD="align: center"]1st Jan[/TD]
[TD="align: center"]12546[/TD]
[TD="align: center"]Point A[/TD]
[TD="align: center"]Point B[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="align: center"]2nd Jan[/TD]
[TD="align: center"]15976[/TD]
[TD="align: center"]Point B[/TD]
[TD="align: center"]Point C[/TD]
[TD="align: center"]?[/TD]
[/TR]
[TR]
[TD="align: center"]3rd Jan[/TD]
[TD="align: center"]14753[/TD]
[TD="align: center"]Point A[/TD]
[TD="align: center"]Point C[/TD]
[TD="align: center"]?[/TD]
[/TR]
[TR]
[TD="align: center"]4th Jan[/TD]
[TD="align: center"]15853[/TD]
[TD="align: center"]Point C[/TD]
[TD="align: center"]Point D[/TD]
[TD="align: center"]?[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]From[/TD]
[TD]To[/TD]
[TD]KM[/TD]
[/TR]
[TR]
[TD]Point A[/TD]
[TD]Point B[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD]Point A[/TD]
[TD]Point C[/TD]
[TD="align: center"]7[/TD]
[/TR]
[TR]
[TD]Point B[/TD]
[TD]Point C[/TD]
[TD="align: center"]9[/TD]
[/TR]
[TR]
[TD]Point C[/TD]
[TD]Point D[/TD]
[TD="align: center"]13[/TD]
[/TR]
</tbody>[/TABLE]
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