Third column value from another table

Closed
Abe - Feb 22, 2011 at 11:21 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Feb 24, 2011 at 09:24 AM
Hi!

Saw the other Q&A in this forum but somehow have not been able to get resolution on this. I have two tables as below
Table A                                      
Color        Vehicle        Utility                    

Blue          Bike                                      
Red          Bus                                
Orange    Truck                              
Yellow      Car                                 

Table B   
Color            Vehicle      Utility   
Red              Bus         City Bus   
Blue             Bike         Police Bike   
Orange        Truck        Petrol Tanker   
Yellow          Car          Taxi   


The requirement:
The third column in Table A needs to be populated by the Utility of each of the vehicles matched and taken from Table B.

Would appreciate resolution on this. Thanks in advance.


Related:

1 response

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 555
Feb 24, 2011 at 09:24 AM
Hi Abe,

Use Vlookup function like:
=VLOOKUP(B4,$B$11:$C$14,2)

For this formula I just copied your sample data to a sheet which gave table A the range A4:C7. And your second table A11:B14. Both ranges are without header.

Make sure that you sorted table B by vehicle for the formula to work properly.

Note that the middle reference: $B$11:$C$14 is an absolute reference, so the formula can easily dragged down.

Best regards,
Trowa
0