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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
bigblue40, Good afternoon.

All your IP addresses have the same MASK? 10.24.xxx.201?
 
Upvote 0
bigblue40, Good afternoon.

Scenario:

AB
1VLAN N
IP Addy
2Vlan 20010.24.200.201
3Vlan 30010.24.300.201
4Vlan 40010.24.400.201
5Vlan 50010.24.500.201

<tbody>
</tbody>

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,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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