What I am trying to do is compare an IP address in a cell to a list of IP ranges and return what location the IP range is for. So for example for:
IP Address--------------- City
192.168.100.50
Column A-------------Column B-----------Column C
192.168.100.1-------192.168.100.254--------Ohio
10.10.10.1-------------10.10.10.254-------Texas
Should return for 'City' column
Ohio
I have done something similar with plain text with this:
=IF(ISERROR(MATCH($A1,$H$3:$H$604,0)),"",VLOOKUP($A1,$H$3:$J$604,2,0))
But that is looking for an exact match not in a range of column A and B. More than anything I am looking for a direction to take. Should I be working with a different function, etc., since these are IP address/numbers and I am looking in a range instead of a match. Any help is appreciated, thank you.
Bookmarks