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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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