cawasaki
asked on
IP to Country in Excel file
Hi,
I have an Excel file with 1000 IP in the column, i need a way to automaticly get an IP country for each IP.
Thanks for your help
I have an Excel file with 1000 IP in the column, i need a way to automaticly get an IP country for each IP.
Thanks for your help
ASKER
I have a spreadsheet that has a column with IP addresses. I need to populate another column automaticly with the country that IP is registered to.
You can download an ip database like the one at http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip?XID=b56e23bc37fc4f96df30fad5458b433c
Then do a vlookup on your ip using a formula like
=VLOOKUP(--SUBSTITUTE(A1," .",""),'ip -to-countr y.csv'!$A$ 1:$E$11179 9,5)
Thomas
Then do a vlookup on your ip using a formula like
=VLOOKUP(--SUBSTITUTE(A1,"
Thomas
This will only work in excel 07 and above since excel 03 is limited at 65,536 rows, and the csv file has 111,799.
T
T
ASKER
Thanks thomas
can you upload plz an example with excel file?
thanks
can you upload plz an example with excel file?
thanks
ASKER
i have Excel 2007
Here is an example, including that database. You can have IPs with . or not.
Thomas
ip-to-country.xlsx
Thomas
ip-to-country.xlsx
I have worked on such project before using programming language but did not finish it.
My finding was: there is range of numbers, every range represents a country, then you calculate any IP using an equation (math equation) to arrive to a particular number then you match the result number to the ranges to get the country.
My finding was: there is range of numbers, every range represents a country, then you calculate any IP using an equation (math equation) to arrive to a particular number then you match the result number to the ranges to get the country.
ASKER
Ok, this database is not correct.
i have found another solution:
="http://api.hostip.info/country.php?ip=" & A2
It is possible to get a result in the excel file? because this create a link and not show the result in the file.
thanks
i have found another solution:
="http://api.hostip.info/country.php?ip=" & A2
It is possible to get a result in the excel file? because this create a link and not show the result in the file.
thanks
ASKER
Any help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
redmondb
thanks for your help,work very fine.
I mentionned that the database is incorect because i have test one frensh IP and ine the file it say Canada!
the error is in the formula not database!
now work perfect thanks
thanks for your help,work very fine.
I mentionned that the database is incorect because i have test one frensh IP and ine the file it say Canada!
the error is in the formula not database!
now work perfect thanks
cawasaki,
Many thanks for that!
Regards,
Brian.
Many thanks for that!
Regards,
Brian.
May I ask you to rephrase your question please?