VLOOKUP Multiple Columns

excelhelp2011

New Member
Joined
Aug 17, 2011
Messages
4
Hi Gurus,

I have following sample data
Sheet1
IPAddress Systemname
1.1.1.1
2.2.2.2

Sheet2
Systemname IP1 IP2 IP3
System1 2.3.3.3 2.4.4.4 2.2.2.2
System2 1.2.2.2 1.3.3.3 1.1.1.1

How can I get the systemname in Sheet1 by matching "IPAddress" in Sheet1 to IP1,IP2,IP3 in Sheet2

Thanks much
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi Gurus,

I have following sample data
Sheet1
IPAddress Systemname
1.1.1.1
2.2.2.2

Sheet2
Systemname IP1 IP2 IP3
System1 2.3.3.3 2.4.4.4 2.2.2.2
System2 1.2.2.2 1.3.3.3 1.1.1.1

How can I get the systemname in Sheet1 by matching "IPAddress" in Sheet1 to IP1,IP2,IP3 in Sheet2

Thanks much
B2, Sheet1...

Control+shift+enter, not just enter, and copy down:
Code:
=IF(COUNTIF(Sheet2!$B$2:$D$3,A2),INDEX(Sheet2!$A$2:$A$3,
   MIN(IF(Sheet2!$B$2:$D$3=A2,
    ROW(Sheet2!$A$2:$A$3)-ROW(Sheet2!$A$2)+1))),"")
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

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