Determine if IP is in Subnet + Lookup

nitrobass24

New Member
Joined
Sep 23, 2009
Messages
39
Hi guys - I have am trying to take a list of 250k IP Addresses and determine if they are in subnets that are part of my organization. I would prefer to do this with just formulas but am open to VBA as well...i just dont understand it as well.

The first two columns I have, the third is my desired output


[TABLE="width: 500"]
<tbody>[TR]
[TD]Subnet[/TD]
[TD]IP Address[/TD]
[TD]Output[/TD]
[/TR]
[TR]
[TD]10.130.164.0/24[/TD]
[TD]10.132.2.25[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]10.132.132.0/23[/TD]
[TD]10.148.1.10[/TD]
[TD]10.148.1.0/24[/TD]
[/TR]
[TR]
[TD]172.16.10.0/25[/TD]
[TD]192.168.10.12[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]192.168.23.0/24[/TD]
[TD]10.130.164.52[/TD]
[TD]10.130.164.0/24[/TD]
[/TR]
[TR]
[TD]10.148.1.0/24[/TD]
[TD]172.16.1.1[/TD]
[TD]N/A[/TD]
[/TR]
</tbody>[/TABLE]
 

Forum statistics

Threads
1,226,849
Messages
6,193,330
Members
453,790
Latest member
yassinosnoo1

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