rob700
asked on
Vlookup - 3 collumns
Overview
In the attached worksheet sheet 1 column A displays the list of customers. You will see there are duplicates of each customer throughout.
Sheet 2 displays the list of customers without the duplicates but also includes some other important information about each customer.
Column 'L' = customer name
Column 'M' = market category
column 'N' = rank
Question
How do I match the information for each customer on sheet two to the customer names in sheet 1.
For example I want DRAKE TOOLING & ABR. LT Cutting Tools 28
to display next to every duplicate row of DRAKE TOOLING in Sheet 1.
I want to do this for every customer.
I am a complete novice to excel. I believe it would involve using the vlookup function but I have little experience of this?
Vlookup-question.xlsx
In the attached worksheet sheet 1 column A displays the list of customers. You will see there are duplicates of each customer throughout.
Sheet 2 displays the list of customers without the duplicates but also includes some other important information about each customer.
Column 'L' = customer name
Column 'M' = market category
column 'N' = rank
Question
How do I match the information for each customer on sheet two to the customer names in sheet 1.
For example I want DRAKE TOOLING & ABR. LT Cutting Tools 28
to display next to every duplicate row of DRAKE TOOLING in Sheet 1.
I want to do this for every customer.
I am a complete novice to excel. I believe it would involve using the vlookup function but I have little experience of this?
Vlookup-question.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sure
This is syntax for VLOOKUP Function.
VLOOKUP( value, table_array, index_number, [not_exact_match] )
Value = value you wan tot look up in our case it is in sheet 1 - A2
Table Array = From which table you want to look up this value so it is in sheet 2 - A1:C146.
Index number = in table array which value want if look value found. in our case column number 2 & for Rating is Column number 3.
Not Exact Match = True or False, True will return to approx. match & False will return to exact match.
table array I had locked so it will remain freeze for formula drop down.
further help pls let me know. I glad to assist you.
Thanks
This is syntax for VLOOKUP Function.
VLOOKUP( value, table_array, index_number, [not_exact_match] )
Value = value you wan tot look up in our case it is in sheet 1 - A2
Table Array = From which table you want to look up this value so it is in sheet 2 - A1:C146.
Index number = in table array which value want if look value found. in our case column number 2 & for Rating is Column number 3.
Not Exact Match = True or False, True will return to approx. match & False will return to exact match.
table array I had locked so it will remain freeze for formula drop down.
further help pls let me know. I glad to assist you.
Thanks
There are many thing in VLOOKUP it self you can use combination of VLOOKUP function with MATCH. or INDEX MATCH function if lookup value is not in column number one i.e. in table selected.
I preffer you use below formula I stead of simple one.
for B2 =IFERROR(VLOOKUP($A2,Sheet 2!$A$1:$C$ 146,MATCH( B$1,Sheet2 !$A$1:$C$1 ,0),FALSE) ,"")
for C2 =IFERROR(VLOOKUP($A2,Sheet 2!$A$1:$C$ 146,MATCH( C$1,Sheet2 !$A$1:$C$1 ,0),FALSE) ,"")
As if there is any error this that will return to "" in stead of error message & you have to give header in Sheet 1 so if change header it will change its values too.
More on VLOOKUP MATCH ? I will
Thanks
I preffer you use below formula I stead of simple one.
for B2 =IFERROR(VLOOKUP($A2,Sheet
for C2 =IFERROR(VLOOKUP($A2,Sheet
As if there is any error this that will return to "" in stead of error message & you have to give header in Sheet 1 so if change header it will change its values too.
More on VLOOKUP MATCH ? I will
Thanks
I like itjockey's formula for cell B2.
I would note if the values in cell B1 on Sheet 1 does not match the value in cell B1 on Sheet 2 nothing will be displayed anything since the "IFERROR" function returns TRUE and the ,"") portion of the formula is executed.
I would suggest, changing the
,"") portion of the formula in B2 to read
CHAR(34) & B$1 & CHAR(34) & " not found on sheet2!")
This will let the user know not only that something is wrong but also what is wrong.
To enter the formula for C2, just copy the formula from B2 to C2.
Jim
I would note if the values in cell B1 on Sheet 1 does not match the value in cell B1 on Sheet 2 nothing will be displayed anything since the "IFERROR" function returns TRUE and the ,"") portion of the formula is executed.
I would suggest, changing the
,"") portion of the formula in B2 to read
CHAR(34) & B$1 & CHAR(34) & " not found on sheet2!")
This will let the user know not only that something is wrong but also what is wrong.
To enter the formula for C2, just copy the formula from B2 to C2.
Jim
ASKER
Thanks
Rob