I am trying to create a tool that will allow you to paste a column of IP addresses and have each address searched for in a range of IP addresses. For each address found in a range then Excel returns "yes", otherwise "no"
The table below is a sample of the pasted addresses (column F)
To the right is where the formula would be (column G) and what you would expect the formula to return (yes/no)
The table below that is the IP Ranges searched on (columns A and B)
I was able to figure out a formula that will search on the first row of ranges but cannot figure out how to search on the full set of ranges
=IF(AND((F1>=A1),(F1<=B1)),"yes","no")
Search Result
10.126.192.21 yes
10.126.197.26 yes
10.20.140.33 no
IP Ranges
From To
10.126.192.21 10.126.192.22
10.126.193.21 10.126.193.22
10.126.194.22 10.126.194.23
10.126.195.21 10.126.195.26
10.126.196.22 10.126.196.23
10.126.197.25 10.126.197.28
10.126.198.22 10.126.198.26
The table below is a sample of the pasted addresses (column F)
To the right is where the formula would be (column G) and what you would expect the formula to return (yes/no)
The table below that is the IP Ranges searched on (columns A and B)
I was able to figure out a formula that will search on the first row of ranges but cannot figure out how to search on the full set of ranges
=IF(AND((F1>=A1),(F1<=B1)),"yes","no")
Search Result
10.126.192.21 yes
10.126.197.26 yes
10.20.140.33 no
IP Ranges
From To
10.126.192.21 10.126.192.22
10.126.193.21 10.126.193.22
10.126.194.22 10.126.194.23
10.126.195.21 10.126.195.26
10.126.196.22 10.126.196.23
10.126.197.25 10.126.197.28
10.126.198.22 10.126.198.26