vlookup with 2nd value

niladri20052006

Board Regular
Joined
Dec 3, 2010
Messages
121
Hi All,

Between two sheets I am doing vlookup in column B in the second sheet. In the sheet1 I have the company name and full name column. But here the company is multiple means I have the same company names 2 times or 3 times where the full Name is different For example

Company Name Full Name
Cisco Systems Matthew Roger
Cisco Systems Samuel Das

In the sheet2 I have the company names but here all the company names with no full name column like

Cisco Systems in B2 of sheet2 I am applying vlookup formula (=VLOOKUP(A2,'Sheet1'!$A$2:$B$4076,2,0) but it gives me the name of Matthew Roger. But I want the name of Samuel Das.

Is there any way to do that?

Thanks in advance!!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,
let Your Data be in Two Columns A:B, exactly in A1:B3. This array Formula (Ctrl+Shift+Enter) can help You (in D1, D2):
Code:
  =INDEX($B$1:$B$3,SMALL(IF($A$1:$A$3="Cisco Systems",ROW($B$1:$B$3),""),ROW()))
Best regards.
 
Last edited:
Upvote 0
Do you only want Sam to show up or do you want Matt to show up too? If you want them both to show up, a pivot table may be a good option for you.


Hi All,

Between two sheets I am doing vlookup in column B in the second sheet. In the sheet1 I have the company name and full name column. But here the company is multiple means I have the same company names 2 times or 3 times where the full Name is different For example

Company Name Full Name
Cisco Systems Matthew Roger
Cisco Systems Samuel Das

In the sheet2 I have the company names but here all the company names with no full name column like

Cisco Systems in B2 of sheet2 I am applying vlookup formula (=VLOOKUP(A2,'Sheet1'!$A$2:$B$4076,2,0) but it gives me the name of Matthew Roger. But I want the name of Samuel Das.

Is there any way to do that?

Thanks in advance!!
 
Upvote 0

Forum statistics

Threads
1,202,976
Messages
6,052,882
Members
444,607
Latest member
RalphJean

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