C
cadfael
Hey all,
I've seen some solutions to similar problems but nothing seems to wor
here.
Quick background:
I'm working with a great number of records involving IP addresses i
dotted quad (1.2.3.4) and "straight decimal" formats. For those wh
don't know, you can convert from dotted quad to straight decimal b
this operation:
1. Convert each quad to hex (dec2hex(value,2)
2. Concatenate the four hex values
3. Convert the resulting hex number back to decimal
What I have are long lists of IP addresses in both formats. I want t
be able to perform automatic lookups of the elements straight decima
list against another worksheet consisting of IP address ranges: thre
columns consisting of a lower bound, upper bound, and a lookup result.
Example:
LOWER UPPER RESULT
3627848912 3627848919 America Online, Plano, TX
What I want to do is perform a function such that if a given entry i
the "straight decimal" column falls within one of those ranges, the
the result returned would be the corresponding value in the "RESULT
column.
Like I said I've seen some solutions for this but they all seem t
require contiguous ranges--nor do they work unless all possible value
for the lookup value are accounted for, whereas I want it to return
result if it finds it, but leave the field blank if I have not ye
entered the data in the ranges & results worksheet.
Any ideas?
Many thanks in advance
I've seen some solutions to similar problems but nothing seems to wor
here.
Quick background:
I'm working with a great number of records involving IP addresses i
dotted quad (1.2.3.4) and "straight decimal" formats. For those wh
don't know, you can convert from dotted quad to straight decimal b
this operation:
1. Convert each quad to hex (dec2hex(value,2)
2. Concatenate the four hex values
3. Convert the resulting hex number back to decimal
What I have are long lists of IP addresses in both formats. I want t
be able to perform automatic lookups of the elements straight decima
list against another worksheet consisting of IP address ranges: thre
columns consisting of a lower bound, upper bound, and a lookup result.
Example:
LOWER UPPER RESULT
3627848912 3627848919 America Online, Plano, TX
What I want to do is perform a function such that if a given entry i
the "straight decimal" column falls within one of those ranges, the
the result returned would be the corresponding value in the "RESULT
column.
Like I said I've seen some solutions for this but they all seem t
require contiguous ranges--nor do they work unless all possible value
for the lookup value are accounted for, whereas I want it to return
result if it finds it, but leave the field blank if I have not ye
entered the data in the ranges & results worksheet.
Any ideas?
Many thanks in advance