LucyJupiter
New Member
Hello all,
I am looking for a way to find partial matches in a long list of IP subnets. We have List A of about 900 IP addresses from users that have visited a product, and List B which is about eleven thousand rows of multiple, space separated IP subnets of users who are allowed access to the product.
We're trying to find out how many of the List A (IP addresses that represent visits) are from allowed users (List B.) The first problem is that one list is IP addresses and one list is IP subnets. I *think* the first two octets of each should be consistent if they are from the same institution (as in IP address 111.222.333.444 and subnet 111.222.666/777 are from the same place since the first two octets 111.222 are the same) but that might just be wrong. (I know this is an Excel forum, but if anyone can comment on that I'd appreciate the knowledge!)
So, we've separated out all of the unique first two octets of List A into their own column. If the first two octet match is a good strategy, is there some way to use an IF function to go through the thousands of space separated IP subnets to find any partial matches in those first two octets? Here's an idea of what our data looks like:
Example List A--first two octets
1.253
102.128
103.11
103.6
104.208
104.213
Example List B (one row represents one institution's allowed IP subnets)
100.100.24.43/32
100.100.24.43/32 147.222.0.0/16 147.222.24.32/32
100.100.24.43/32 147.137.0.0/16 132.174.255.253/32
104.1.77.112/30 104.0.217.160/28 50.242.154.148/30
108.199.166.145/32 108.199.166.146/31 108.166.188.148/31
108.220.98.45/32
MANY thanks for any comments and suggestions, and please let me know if anything is unclear.
-LucyJupiter
I am looking for a way to find partial matches in a long list of IP subnets. We have List A of about 900 IP addresses from users that have visited a product, and List B which is about eleven thousand rows of multiple, space separated IP subnets of users who are allowed access to the product.
We're trying to find out how many of the List A (IP addresses that represent visits) are from allowed users (List B.) The first problem is that one list is IP addresses and one list is IP subnets. I *think* the first two octets of each should be consistent if they are from the same institution (as in IP address 111.222.333.444 and subnet 111.222.666/777 are from the same place since the first two octets 111.222 are the same) but that might just be wrong. (I know this is an Excel forum, but if anyone can comment on that I'd appreciate the knowledge!)
So, we've separated out all of the unique first two octets of List A into their own column. If the first two octet match is a good strategy, is there some way to use an IF function to go through the thousands of space separated IP subnets to find any partial matches in those first two octets? Here's an idea of what our data looks like:
Example List A--first two octets
1.253
102.128
103.11
103.6
104.208
104.213
Example List B (one row represents one institution's allowed IP subnets)
100.100.24.43/32
100.100.24.43/32 147.222.0.0/16 147.222.24.32/32
100.100.24.43/32 147.137.0.0/16 132.174.255.253/32
104.1.77.112/30 104.0.217.160/28 50.242.154.148/30
108.199.166.145/32 108.199.166.146/31 108.166.188.148/31
108.220.98.45/32
MANY thanks for any comments and suggestions, and please let me know if anything is unclear.
-LucyJupiter