I have the following table
Table A
TN ECC 12
TN NTL 7
TN PORTLAND 12
TN CANAPORT 12
TN USAC 16
TN HFX/Pt.Tupper 9.5
WR ECC 14
WR PORTLAND 14
WR CANAPORT 14
WR USAC 18
WR NTL 8
WR HFX/Pt.Tupper 11
HIB NTL 6
HIB PORTLAND 6
HIB CANAPORT 6
HIB USAC 15
HIB ECC 11
HIB HFX/Pt.Tupper 9
In another table I have the following
Cargo Days Port Total
TN11 5 NTL
WR05 5 Portland
HIB23 5 Canaport
In the total column I need excel to look and see if the cargo number starts with TN, or WR, or HIB and then check the Port in table A and then assign the right number from Table A
Help
Table A
TN ECC 12
TN NTL 7
TN PORTLAND 12
TN CANAPORT 12
TN USAC 16
TN HFX/Pt.Tupper 9.5
WR ECC 14
WR PORTLAND 14
WR CANAPORT 14
WR USAC 18
WR NTL 8
WR HFX/Pt.Tupper 11
HIB NTL 6
HIB PORTLAND 6
HIB CANAPORT 6
HIB USAC 15
HIB ECC 11
HIB HFX/Pt.Tupper 9
In another table I have the following
Cargo Days Port Total
TN11 5 NTL
WR05 5 Portland
HIB23 5 Canaport
In the total column I need excel to look and see if the cargo number starts with TN, or WR, or HIB and then check the Port in table A and then assign the right number from Table A
Help