IP Address Lookup

bigblue40

Board Regular
Joined
Aug 3, 2003
Messages
102
Hi
I have a spreadsheet with 500 lines of IP addresses and I want to have an additional lookup of the Vlan names as below

I need to look at the third Octet of the IP address ie the 200, 300, 400 of the IP address etc to then return the VLAN name, ie Vlan200, Vlan300 etc.

Hope this is clear, thanks in advance for the help...

Column A Column B
VLAN N IP Addy
Vlan 200 10.24.200.201
Vlan 300 10.24.300.201
Vlan 400 10.24.400.201
Vlan 500 10.24.500.201
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
bigblue40, Good afternoon.

Scenario:

[TABLE="class: grid, width: 252"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]VLAN N
[/TD]
[TD="align: center"]IP Addy[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Vlan 200[/TD]
[TD]10.24.200.201[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Vlan 300[/TD]
[TD]10.24.300.201[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Vlan 400[/TD]
[TD]10.24.400.201[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Vlan 500[/TD]
[TD]10.24.500.201[/TD]
[/TR]
</tbody>[/TABLE]

I imagine that this VLAN 200 for 10.24.200.201 with the same 200 is only an example, isn't?

Try to use:

D1 --> SEARCH NUMBER --> 200

D3 --> FORMULA --> =LOOKUP(2,1/(MID($B$2:$B$5,7,3)=$D$1&""),$A$2:$A$5)

Is that what you want?

I hope it helps.
 
Upvote 0
PErfect thanks MArcilio, much appreciated.

Vlan 200 10.24.200.201 200 Vlan 200
Vlan 300 10.24.300.201 300 Vlan 300
Vlan 400 10.24.400.201 200 Vlan 200
Vlan 500 10.24.500.201 500 Vlan 500
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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