I am trying to find a formula for column A that will check an IP address in column B and find if if falls into a range (or between) 2 addresses in in two other columns. C and D.
E.G.
[TABLE="width: 328"]
<tbody>[TR]
[TD]Valid?[/TD]
[TD]address[/TD]
[TD="colspan: 2"]range[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]start[/TD]
[TD]end[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.1.5[/TD]
[TD]10.1.1.0[/TD]
[TD]10.1.1.31[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.3.13[/TD]
[TD]10.1.2.16[/TD]
[TD]10.1.2.31[/TD]
[/TR]
[TR]
[TD]no[/TD]
[TD]10.1.2.7[/TD]
[TD]10.1.1.128[/TD]
[TD]10.1.1.223[/TD]
[/TR]
[TR]
[TD]no[/TD]
[TD]10.1.1.62[/TD]
[TD]10.1.3.0[/TD]
[TD]10.1.3.127[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.1.9[/TD]
[TD]10.1.4.0[/TD]
[TD]10.1.4.255[/TD]
[/TR]
[TR]
[TD]no[/TD]
[TD]10.1.1.50[/TD]
[TD]…[/TD]
[TD]…[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.1.200[/TD]
[TD]…[/TD]
[TD]…[/TD]
[/TR]
</tbody>[/TABLE]
Sorry about the formatting..
I can do a lateral check with
=IF(AND((B3>C3),(B3 < D3)),"yes","no")
which only checks 1 address against the range next to it. I need something that will check the 1 ip address against all of the ranges. i.e. rows 2 to 100..
This is checking access list rules against routes to see if i can eliminate redundant rules... but has other uses if i can get it going. To make it extra special i can not use VBA macros to get it done.
I'm thinking some kind of index match to look it up in an array but not sure how to apply it. I don't know if it can even be done. Good luck.
E.G.
[TABLE="width: 328"]
<tbody>[TR]
[TD]Valid?[/TD]
[TD]address[/TD]
[TD="colspan: 2"]range[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]start[/TD]
[TD]end[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.1.5[/TD]
[TD]10.1.1.0[/TD]
[TD]10.1.1.31[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.3.13[/TD]
[TD]10.1.2.16[/TD]
[TD]10.1.2.31[/TD]
[/TR]
[TR]
[TD]no[/TD]
[TD]10.1.2.7[/TD]
[TD]10.1.1.128[/TD]
[TD]10.1.1.223[/TD]
[/TR]
[TR]
[TD]no[/TD]
[TD]10.1.1.62[/TD]
[TD]10.1.3.0[/TD]
[TD]10.1.3.127[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.1.9[/TD]
[TD]10.1.4.0[/TD]
[TD]10.1.4.255[/TD]
[/TR]
[TR]
[TD]no[/TD]
[TD]10.1.1.50[/TD]
[TD]…[/TD]
[TD]…[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]10.1.1.200[/TD]
[TD]…[/TD]
[TD]…[/TD]
[/TR]
</tbody>[/TABLE]
Sorry about the formatting..
I can do a lateral check with
=IF(AND((B3>C3),(B3 < D3)),"yes","no")
which only checks 1 address against the range next to it. I need something that will check the 1 ip address against all of the ranges. i.e. rows 2 to 100..
This is checking access list rules against routes to see if i can eliminate redundant rules... but has other uses if i can get it going. To make it extra special i can not use VBA macros to get it done.
I'm thinking some kind of index match to look it up in an array but not sure how to apply it. I don't know if it can even be done. Good luck.